From 9e4e8531fc1c36a206c964c217b79986f20a32d2 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 22 May 2013 14:45:53 +0200 Subject: use jsme plugin instead of jme, position of tooltips edited --- views/layout.haml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'views/layout.haml') diff --git a/views/layout.haml b/views/layout.haml index 12874c4..410d150 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -6,7 +6,9 @@ %title Lazar Toxicity Predictions %link{ :href=>"/stylesheets/screen.css", :media=>"screen, projection", :rel=>"stylesheet", :type=>"text/css"} %link{ :href=>"/stylesheets/jquery-ui.css", :rel=>"stylesheet"} + %link{ :href=>"/jsme/jsa.css", :rel=>"stylesheet"} %script{:src=>"/javascripts/jquery-1.9.1.min.js", :type=>"text/javascript"} + %script{:src=>"/jsme/jsme.nocache.js", :type=>"text/javascript"} %script{ :src=>"/javascripts/jquery-ui.min.js", :type=>"text/javascript"} %script{ :src=>"/javascripts/lazar-gui.js", :type=>"text/javascript"} %script{:src=>"/javascripts/jquery.tablesorter.min.js", :type=>"text/javascript"} @@ -15,6 +17,9 @@ %body + %noscript + %div{ :style=>"width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif"} + Your web browser must have JavaScript enabled in order for this application to display correctly. .logo %a{:href=> to("/predict")} %img{:src=>"/images/ist_logo.png"} @@ -46,17 +51,17 @@ $('a#confidence').tooltip({ predelay: 800, position: 'bottom center', - offset: [-400, 0], + offset: [-100, 0], }); $('a#similarity').tooltip({ predelay: 800, position: 'bottom center', - offset: [-400, 0], + offset: [-600, 0], }); $('a#measured_activity').tooltip({ predelay: 800, position: 'bottom center', - offset: [-400, 0], + offset: [-450, 0], }); }); #back-top -- cgit v1.2.3