Changeset 10914
- Timestamp:
- 10/19/11 21:35:23 (19 months ago)
- Location:
- ossiedev/trunk/tools/cornetApps
- Files:
-
- 4 added
- 11 modified
-
HtmlPages/static/frames.css (modified) (2 diffs)
-
HtmlPages/static/frames.js (modified) (3 diffs)
-
HtmlPages/static/frames1.js (added)
-
HtmlPages/static/pics/grey_ball.gif (added)
-
cornetApps.db (modified) (previous)
-
settings.py (modified) (4 diffs)
-
static/frames.css (modified) (1 diff)
-
static/frames.js (modified) (2 diffs)
-
static/grey_ball.gif (added)
-
static/pics/grey_ball.gif (added)
-
templates/HtmlPages/grid.html (modified) (1 diff)
-
templates/HtmlPages/map.html (modified) (1 diff)
-
templates/HtmlPages/ossie.html (modified) (1 diff)
-
templates/WebDash/index.html (modified) (2 diffs)
-
templates/WebDash/running.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/tools/cornetApps/HtmlPages/static/frames.css
r10903 r10914 15 15 top: 0; 16 16 left: 0; 17 width: 250px;17 width: 315px; 18 18 } 19 19 … … 42 42 #right_top{ 43 43 /**background-image:url('floor1_small_nonodes.jpg');**/ 44 height: 400px;44 /*height: 275px;*/ 45 45 /*width: 1000px;*/ 46 46 overflow: auto; -
ossiedev/trunk/tools/cornetApps/HtmlPages/static/frames.js
r10906 r10914 6 6 }); 7 7 8 $(function closePage(){9 window.onbeforeunload=function(){10 return 'Please remember to uninstall ALL WAVEFORMS AND SCRIPTS before leaving.';}11 });12 8 13 9 /** … … 34 30 35 31 $("#left_bottom").ready(function(){ 36 $("#apps").load(" WebDash/running/");32 $("#apps").load("/WebDash/running/"); 37 33 $("a.ajax").click(function(){ 38 34 $("#apps").load($(this).attr('title')); … … 77 73 78 74 function install(waveform){ 79 var oldunload = window.onbeforeunload; 80 delete window.onbeforeunload; 81 $("#apps").load("WebDash/install/"+waveform); 82 window.onbeforeunload = oldunload; 75 //$("#apps").load("/~webdemo/django/WebDash/install/"+waveform); 76 $("#apps").load("/WebDash/install/"+waveform+"/"); 77 $("#apps").load("/WebDash/running/"); 83 78 } 84 79 85 80 function uninstall(waveform){ 86 $("#apps").load(" WebDash/uninstall/"+waveform);81 $("#apps").load("/WebDash/uninstall/"+waveform+"/"); 87 82 } 83 84 function loadNode(ip) { 85 //$("#directory").load("/~webdemo/django/WebDash/192.168.1."+node_ip+"/"); 86 //$("#directory").load("/WebDash/"+node_ip+"/"); 87 $("#directory").load("/WebDash/127.0.0."+ip+"/"); 88 } 89 90 function display(instance){ 91 $("#workspace").load("/WebDash/"+instance+"/display/"); 92 } 93 94 /** 95 96 $(document).window.onbeforeunload=function(){ 97 return 'Please remember to uninstall ALL WAVEFORMS AND SCRIPTS before leaving.';} 98 99 **/ -
ossiedev/trunk/tools/cornetApps/settings.py
r10901 r10914 13 13 'default': { 14 14 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 15 #'NAME': 'cornetApps.db', # Or path to database file if using sqlite3.16 'NAME': '/home/webdemo/cornetApps/cornetApps.db', #webserver15 'NAME': 'cornetApps.db', # Or path to database file if using sqlite3. 16 #'NAME': '/home/webdemo/cornetApps/cornetApps.db', #webserver 17 17 'USER': '', # Not used with sqlite3. 18 18 'PASSWORD': '', # Not used with sqlite3. … … 62 62 # Example: "/home/media/media.lawrence.com/static/" 63 63 64 #STATIC_ROOT = '/home/ossie/workspace/cornetApps/static/'65 STATIC_ROOT = 'static/' #webserver64 STATIC_ROOT = '/home/ossie/workspace/cornetApps/static/' 65 #STATIC_ROOT = 'static/' #webserver 66 66 67 67 # URL prefix for static files. 68 68 # Example: "http://media.lawrence.com/static/" 69 69 70 STATIC_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/static/' #webserver71 #STATIC_URL = '/static/'70 #STATIC_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/static/' #webserver 71 STATIC_URL = '/static/' 72 72 73 73 … … 82 82 # Always use forward slashes, even on Windows. 83 83 # Don't forget to use absolute paths, not relative paths. 84 #'/home/ossie/workspace/cornetApps/HtmlPages/static/',85 '/home/webdemo/cornetApps/HtmlPages/static/', #webserver84 '/home/ossie/workspace/cornetApps/HtmlPages/static/', 85 #'/home/webdemo/cornetApps/HtmlPages/static/', #webserver 86 86 #'/home/webdemo/cornetApps/WebDemo/static/', 87 87 ) … … 118 118 TEMPLATE_DIRS = ( 119 119 "templates", 120 '/home/webdemo/cornetApps/templates', 120 '/home/webdemo/cornetApps/templates', #webserver 121 121 'templates/HtmlPages', 122 122 'templates/WebDash', -
ossiedev/trunk/tools/cornetApps/static/frames.css
r10901 r10914 41 41 #right_top{ 42 42 /**background-image:url('floor1_small_nonodes.jpg');**/ 43 height: 400px;43 height: 300px; 44 44 /*width: 1000px;*/ 45 overflow: auto;46 45 } 47 46 -
ossiedev/trunk/tools/cornetApps/static/frames.js
r10901 r10914 67 67 $(container).fadeIn('fast'); 68 68 $("a#node").click(function(){ 69 $("#directory").load(" /~webdemo/django/WebDash/192.168.1."+$(this).attr('title')+"/");69 $("#directory").load("http://cornet.wireless.vt.edu/~webdemo/django/WebDash/192.168.1."+$(this).attr('title')+"/"); 70 70 }); 71 71 }); … … 86 86 $("#apps").load("WebDash/uninstall/"+waveform); 87 87 } 88 89 /**90 $("#left_top").ready(function(){91 $(".webdashLink").click(function(){92 $("#workspace").load("http://cornet.wireless.vt.edu/~webdemo/django/WebDash/192.168.1."+$(this).attr('title')+"/");93 });94 });95 **/ -
ossiedev/trunk/tools/cornetApps/templates/HtmlPages/grid.html
r10900 r10914 11 11 {% for node in floor %} 12 12 {% if node %} 13 <td><a id="node" href=" #" title="{{node}}"><img src="{{STATIC_URL}}green_ball.gif"/></a></td>13 <td><a id="node" href="javascript:loadNode(1);" title="{{forloop.parentloop.counter}}-{{forloop.counter}}"><img src="{{STATIC_URL}}green_ball.gif"/></a></td> 14 14 {% else %} 15 <td><img src="{{STATIC_URL}}red_ball.gif"/></td>15 <td><img title="{{forloop.parentloop.counter}}-{{forloop.counter}}" src="{{STATIC_URL}}grey_ball.gif"/></td> 16 16 {% endif %} 17 17 {% endfor %} -
ossiedev/trunk/tools/cornetApps/templates/HtmlPages/map.html
r10900 r10914 8 8 {% else %} 9 9 {% if forloop.counter0 == forloop.parentloop.counter0 %} 10 <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}} red_ball.gif"/>10 <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> 11 11 {% endif %} 12 12 {% endif %} -
ossiedev/trunk/tools/cornetApps/templates/HtmlPages/ossie.html
r10901 r10914 26 26 <li class="current"><a href="../grid/">Grid View</a></li> 27 27 <li><a href="../map/1/">Map of Floor 1</a></li> 28 <!--<li id="waveforms_nav" ><a href="../WebDash/waveforms/">Waveforms</a></li>-->29 <li id="properties"><a href="../properties/">Properties</a></li>30 28 <li id="task manager"><a href="../tasks/">Task Manager</a></li> 31 29 </ul> -
ossiedev/trunk/tools/cornetApps/templates/WebDash/index.html
r10893 r10914 4 4 5 5 {% if availableList %} 6 <h 1>Available Waveforms</h1>6 <h3>Available Waveforms</h3> 7 7 <table> 8 8 … … 12 12 <tr> 13 13 <td> {{ wave.getName }} </td> 14 <td> <button onClick= "window.location='/~webdemo/django/WebDash/install/{{ wave.getName }}/'">Install</button> </td>14 <td> <button onClick='javascript:install("{{ wave.getName }}");'>Install</button> </td> 15 15 {% endfor %} 16 16 </tr> -
ossiedev/trunk/tools/cornetApps/templates/WebDash/running.html
r10893 r10914 4 4 {% for instance in instancesList %} 5 5 <tr> 6 <td> <a href='/~webdemo/django/WebDash/{{ instance.getName }}/display/'>{{ instance.getName }}</a> </td> 6 <!--<td> <a href='/~webdemo/django/WebDash/{{ instance.getName }}/display/'>{{ instance.getName }}</a> </td>--> 7 <td><a href='#' onclick='javascript:display("{{instance.getName}}");'>{{instance.getName}}</a></td> 7 8 <!--<td> <button onClick="window.location='/WebDash/{{ instance.getName }}/uninstall/'">Uninstall </button></td>--> 8 <td><button onClick= "javascript:uninstall('{{ instance.getName }}');">Uninstall</button></td>9 <td><button onClick='javascript:uninstall("{{ instance.getName }}");'>Uninstall</button></td> 9 10 </tr> 10 11 {% endfor %}