summaryrefslogtreecommitdiff
path: root/static/website/templates/index.html
diff options
context:
space:
mode:
authorJayaram R Pai2014-09-08 17:35:39 +0530
committerJayaram R Pai2014-09-08 17:35:39 +0530
commitd349c35d31b4ccf1bcc7c26a408cada3be38169e (patch)
tree5ba102abbc3d1f57853bf0db0fe6a039e56b16f1 /static/website/templates/index.html
parente894b2919c54a1cf577ec170cd9e6d99bedc6da9 (diff)
downloadscilab-on-cloud-d349c35d31b4ccf1bcc7c26a408cada3be38169e.tar.gz
scilab-on-cloud-d349c35d31b4ccf1bcc7c26a408cada3be38169e.tar.bz2
scilab-on-cloud-d349c35d31b4ccf1bcc7c26a408cada3be38169e.zip
converted ajax views to dajaxice
Diffstat (limited to 'static/website/templates/index.html')
-rw-r--r--static/website/templates/index.html42
1 files changed, 10 insertions, 32 deletions
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index bc06ea3..50dee60 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -1,4 +1,5 @@
{% load static %}
+{% load dajaxice_templatetags %}
<html>
<head>
<title>Scilab on Cloud</title>
@@ -7,6 +8,7 @@
<link href="{% static 'website/css/fullscreen.css'%}" rel="stylesheet"/>
<link href="{% static 'website/css/monokai.css' %}" rel="stylesheet"/>
<link href="{% static 'website/css/main.css' %}" rel="stylesheet"/>
+ {% dajaxice_js_import %}
</head>
<body>
<div id="header-wrapper">
@@ -24,11 +26,11 @@
<li><a href="#">Contact Us</a></li>
<img id="scilab-logo" src="{% static 'website/images/scilab-logo.png'%}" width="100px">
</ul>
+ <div class="clearfix"></div>
</div> <!-- /#navlinks -->
</div> <!-- /#topbar -->
</div> <!-- /#header-inner -->
</div> <!-- /#header-wrapper -->
-
<div id="content-wrapper">
<div id="content-inner">
<div id="selectors">
@@ -49,7 +51,8 @@
<option value="6">Signal Processing</option>
<option value="4">Thermodynamics</option>
<option value="13">Others</option>
- </select>
+ </select>
+ <a href="#" class="extra-link" id="contributor">Contributor</a>
</div>
<div id="books-wrapper"></div>
<div id="chapters-wrapper"></div>
@@ -103,43 +106,18 @@
</div> <!-- /#content-inner -->
</div> <!-- /#content-wrapper -->
- <div id="lightbox-me-wrapper">
- <div id="lightbox-me"></div>
- </div> <!-- /#lightbox-me-wrapper -->
+ <div id="lightbox-me-wrapper">
+ <div id="lightbox-me"></div>
+ </div> <!-- /#lightbox-me-wrapper -->
+
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
+ <script src="{% static '/static/dajax/jquery.dajax.core.js' %}"></script>
<script src="{% static 'website/js/codemirror.js'%}"></script>
<script src="{% static 'website/js/javascript.js'%}"></script>
<script src="{% static 'website/js/fullscreen.js'%}"></script>
<script src="{% static 'website/js/placeholder.js'%}"></script>
<script src="{% static 'website/js/lightbox_me.js'%}"></script>
<script src="{% static 'website/js/cloud.js'%}"></script>
- <script>
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
- lineNumbers: true,
- lineWrapping: true,
- theme: "default",
- extraKeys: {
- "F11": function(cm) {
- cm.setOption("fullScreen", !cm.getOption("fullScreen"));
- },
- "Esc": function(cm) {
- if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
- }
- }
- });
- var result = CodeMirror.fromTextArea(document.getElementById("result"), {
- lineWrapping: true,
- theme: "default",
- extraKeys: {
- "F11": function(cm) {
- cm.setOption("fullScreen", !cm.getOption("fullScreen"));
- },
- "Esc": function(cm) {
- if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
- }
- }
- });
- </script>
{% csrf_token %}
</body>
</html>