Permalink
Browse files

v1.0

  • Loading branch information...
0 parents commit 6f15c5c76441aa244fc63e7c09ca1e940025534f @marceloOrigoni committed Jan 30, 2011
Showing with 1,065 additions and 0 deletions.
  1. +28 −0 Demo/css/style.css
  2. +56 −0 Demo/demo.1.2.html
  3. +56 −0 Demo/demo.1.3.html
  4. +379 −0 Demo/js/mootools-1.2.js
  5. +436 −0 Demo/js/mootools-1.3.js
  6. +54 −0 Docs/docs.html
  7. +12 −0 README.md
  8. +37 −0 Source/Element.unselectable.js
  9. +7 −0 package.yml
@@ -0,0 +1,28 @@
+#wrap{
+ width: 790px;
+ margin: 0 auto 0;
+}
+.big{
+ width: 786px;
+ float: left;
+ border: 1px solid #009;
+ color: #009;
+ padding: 5px;
+ margin: 5px 0;
+}
+
+#sel, .sel{
+ width: 250px;
+ float: left;
+ border: 1px solid #090;
+ color: #090;
+ padding: 5px;
+}
+
+#non, .non{
+ width: 250px;
+ float: left;
+ border: 1px solid #900;
+ color: #900;
+ padding: 5px;
+}
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+ <head>
+ <link href="./css/style.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="./js/mootools-1.2.js"></script>
+ <script type="text/javascript" src="../Source/Element.unselectable.js"></script>
+ <script type="text/javascript">
+
+ window.addEvent('domready', function(){
+ $('non').unselectable();
+ $$('.non').unselectable();
+ });
+
+ </script>
+ </head>
+ <body>
+ <div id="wrap">
+ <div class="big">
+ <h3>This parragraphs are signed by class</h3>
+ <pre>
+ $$('.non').unselectable();
+ </pre>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ </div>
+ <div class="big">
+ <h3>This div is signed by id</h3>
+ <pre>
+ $('non').unselectable();
+ </pre>
+ <div id="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </div>
+ <div id="non">
+ Aenean eu elit nulla, a suscipit velit. Quisque ac quam tortor, id luctus leo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
+ </div>
+ <div>
+ </div>
+ </body>
+</html>
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+ <head>
+ <link href="./css/style.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="./js/mootools-1.3.js"></script>
+ <script type="text/javascript" src="../Source/Element.unselectable.js"></script>
+ <script type="text/javascript">
+
+ window.addEvent('domready', function(){
+ $('non').unselectable();
+ $$('.non').unselectable();
+ });
+
+ </script>
+ </head>
+ <body>
+ <div id="wrap">
+ <div class="big">
+ <h3>This parragraphs are signed by class</h3>
+ <pre>
+ $$('.non').unselectable();
+ </pre>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ <p class="non">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </p>
+ </div>
+ <div class="big">
+ <h3>This div is signed by id</h3>
+ <pre>
+ $('non').unselectable();
+ </pre>
+ <div id="sel">
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sed lectus enim. Donec rutrum tristique lacus ac mattis.
+ </div>
+ <div id="non">
+ Aenean eu elit nulla, a suscipit velit. Quisque ac quam tortor, id luctus leo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
+ </div>
+ <div>
+ </div>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 6f15c5c

Please sign in to comment.