protodiv demo
authorJoe Hitchens <joe@sleepless.com>
Fri, 11 Nov 2011 19:10:15 +0000 (11:10 -0800)
committerJoe Hitchens <joe@sleepless.com>
Fri, 11 Nov 2011 19:10:15 +0000 (11:10 -0800)
public/schools.html

index a62f083414a31e89ecf713949adb8519efe55a2c..2507aeb716f79c0f49534d79ee4574c9739f86c7 100644 (file)
@@ -6,7 +6,7 @@
 
                <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script>
                <script type='text/javascript' src='/javascripts/es5-shim.min.js'></script>
-               <script type='text/javascript' src='/javascripts/protodiv.js'></script>
+               <script type='text/javascript' src='javascripts/protodiv.js'></script>
                <script type='text/javascript' src='/socket.io/socket.io.js'></script>
 
        <meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0">
@@ -31,7 +31,7 @@
 
                                <div class="school" id=schoolproto>
 
-                                       <h2><a href="">__name__</a></h2>
+                                       <h2><a href="courses.html?school=__name__">__name__</a></h2>
                                        <!-- ul>
                                                <li id=course_proto><a href="course/__courseid__">__coursename__</a></li>
                                        </ul -->
 var schools = [
        {
                name: "Berkeley",
-               ref: "http://www.berkeley.edu/"
                courses: [
                        { id: "4e6d1e9b42bbef522c000a8f", name: "History 12: Introduction to the Middle East" },
                        { id: "4e8aa3f62e4b97e67b001f47", name: "ANTH160AC/ISF 160: The Forms of Folklorek" }
-               }
+               ]
        }
 ]
                        ProtoDiv.replicate("schoolproto", schools);