From b25b2a3973652d750ab49d11607036a915137a50 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 24 Jul 2012 16:22:14 +0400 Subject: [PATCH] split markers into a seporate set of files... make compleatly standalone... Signed-off-by: Alex A. Naanou --- ui/experiment-ribbon-navigation-n-zoom.html | 30 +++------------------ ui/gallery.html | 7 +++++ ui/markers.css | 21 +++++++++++++++ ui/markers.js | 10 +++++++ 4 files changed, 41 insertions(+), 27 deletions(-) create mode 100755 ui/markers.css create mode 100755 ui/markers.js diff --git a/ui/experiment-ribbon-navigation-n-zoom.html b/ui/experiment-ribbon-navigation-n-zoom.html index e6ba451f..417e9aa0 100755 --- a/ui/experiment-ribbon-navigation-n-zoom.html +++ b/ui/experiment-ribbon-navigation-n-zoom.html @@ -12,7 +12,10 @@ XXX zoom animation is odd... --> + + + @@ -17,6 +18,7 @@ + @@ -69,6 +71,8 @@ $(document).ready(setup);
+
+
^
@@ -79,6 +83,9 @@ $(document).ready(setup);
+ + +

diff --git a/ui/markers.css b/ui/markers.css new file mode 100755 index 00000000..27368e47 --- /dev/null +++ b/ui/markers.css @@ -0,0 +1,21 @@ + +.h-marker { + position: absolute; + border-top: solid blue 1px; + height: 0px; + width: 100%; + top: 50%; + left: 0px; + display: none; +} + +.v-marker { + position: absolute; + border-left: solid blue 1px; + height: 100%; + width: 0px; + top: 0px; + left: 50%; + display: none; +} + diff --git a/ui/markers.js b/ui/markers.js new file mode 100755 index 00000000..0b5908e7 --- /dev/null +++ b/ui/markers.js @@ -0,0 +1,10 @@ + +function toggleMarkers(){ + var marker = $('.v-marker, .h-marker') + if(marker.css('display') == 'none'){ + marker.fadeIn() + } else { + marker.fadeOut() + } +} +