aboutsummaryrefslogtreecommitdiffstats
path: root/library/jslider/tests
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-13 07:09:29 -0700
committerfriendica <info@friendica.com>2012-07-13 07:09:29 -0700
commita20a6377277a985fa596b0ea460d91b97f79b4a5 (patch)
tree1878d488143e2f0d698dc42ae924ab7be93ffb54 /library/jslider/tests
parent599f3d29610b2cc509ab51df0f42d154dd70278d (diff)
downloadvolse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.gz
volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.bz2
volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.zip
merge upstream, slider work, refactor ping module, language selection work
Diffstat (limited to 'library/jslider/tests')
-rw-r--r--library/jslider/tests/show_hide.html53
-rw-r--r--library/jslider/tests/zero_value.html64
2 files changed, 117 insertions, 0 deletions
diff --git a/library/jslider/tests/show_hide.html b/library/jslider/tests/show_hide.html
new file mode 100644
index 000000000..57d3e929d
--- /dev/null
+++ b/library/jslider/tests/show_hide.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>jSlider Show/hide test</title>
+
+ <!-- bin/jquery.slider.min.css -->
+ <link rel="stylesheet" href="../css/jslider.css" type="text/css">
+ <link rel="stylesheet" href="../css/jslider.plastic.css" type="text/css">
+ <!-- end -->
+
+ <script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
+
+ <!-- bin/jquery.slider.min.js -->
+ <script type="text/javascript" src="../js/jshashtable-2.1_src.js"></script>
+ <script type="text/javascript" src="../js/jquery.numberformatter-1.2.3.js"></script>
+ <script type="text/javascript" src="../js/tmpl.js"></script>
+ <script type="text/javascript" src="../js/jquery.dependClass-0.1.js"></script>
+ <script type="text/javascript" src="../js/draggable-0.1.js"></script>
+ <script type="text/javascript" src="../js/jquery.slider.js"></script>
+ <!-- end -->
+
+ <style type="text/css" media="screen">
+ body { background: #EEF0F7; }
+ .layout { padding: 50px; font-family: Georgia, serif; }
+ .layout-slider { margin-bottom: 60px; width: 50%; padding: 20px 0; }
+ </style>
+
+</head>
+<body>
+
+ <div class="layout">
+
+ <div class="layout-slider" style="width: 100%; display: none;">
+ Slider <span style="display: inline-block; width: 400px; padding: 0 5px;"><input id="Slider3" type="text" name="area" value="25;75" /></span> in string
+ </div>
+ <a href="#" id="trigger">Show/Hide</a>
+
+ <script type="text/javascript" charset="utf-8">
+ var layout = $(".layout-slider"),
+ trigger = $("#trigger");
+
+ jQuery("#Slider3").slider({ from: 0, to: 500, heterogeneity: ['50/100', '75/250'], scale: [0, '|', 50, '|', '100', '|', 250, '|', 500], limits: false, step: 1, dimension: '&nbsp;m<small>2</small>', skin: "plastic" });
+
+ $(trigger).click( function(){
+ layout.slideToggle("fast");
+ $("#Slider3").slider().update();
+ });
+ </script>
+
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/library/jslider/tests/zero_value.html b/library/jslider/tests/zero_value.html
new file mode 100644
index 000000000..7d9e9f874
--- /dev/null
+++ b/library/jslider/tests/zero_value.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>jSlider Zero value test</title>
+
+ <!-- bin/jquery.slider.min.css -->
+ <link rel="stylesheet" href="../css/jslider.css" type="text/css">
+ <link rel="stylesheet" href="../css/jslider.plastic.css" type="text/css">
+ <!-- end -->
+
+ <script type="text/javascript" src="../js/jquery-1.7.1.js"></script>
+
+ <!-- bin/jquery.slider.min.js -->
+ <script type="text/javascript" src="../js/jshashtable-2.1_src.js"></script>
+ <script type="text/javascript" src="../js/jquery.numberformatter-1.2.3.js"></script>
+ <script type="text/javascript" src="../js/tmpl.js"></script>
+ <script type="text/javascript" src="../js/jquery.dependClass-0.1.js"></script>
+ <script type="text/javascript" src="../js/draggable-0.1.js"></script>
+ <script type="text/javascript" src="../js/jquery.slider.js"></script>
+ <!-- end -->
+
+ <style type="text/css" media="screen">
+ body { background: #EEF0F7; }
+ .layout { padding: 50px; font-family: Georgia, serif; }
+ .layout-slider { margin-bottom: 60px; width: 50%; }
+ </style>
+
+</head>
+<body>
+
+ <div class="layout">
+
+ <div class="layout-slider" style="width: 100%">
+ Slider <span style="display: inline-block; width: 400px; padding: 0 5px;"><input id="Slider1" type="slider" name="price" value="50" /></span> in string
+ </div>
+ <script type="text/javascript" charset="utf-8">
+ jQuery("#Slider1").slider({
+ from: -50,
+ to: 200,
+ step: 5,
+ dimension: '%',
+ skin: 'plastic',
+ scale: ['-50', '|', '0', '|', '50', '|', '100', '|', '150', '|', '200']
+ });
+ </script>
+
+ <div class="layout-slider" style="width: 100%">
+ Slider <span style="display: inline-block; width: 400px; padding: 0 5px;"><input id="Slider2" type="slider" name="price" value="-0.5;0.5" /></span> in string
+ </div>
+ <script type="text/javascript" charset="utf-8">
+ jQuery("#Slider2").slider({
+ from: -1,
+ to: 1,
+ step: 0.1,
+ round: 1,
+ dimension: 'px',
+ skin: 'plastic'
+ });
+ </script>
+
+ </div>
+</body>
+</html> \ No newline at end of file