Permalink
Browse files

initial commit

  • Loading branch information...
arenevier committed Jul 1, 2010
0 parents commit b3835ebaf9933bed94ebb7baac53bdaa6430c91d
Showing with 6,315 additions and 0 deletions.
  1. +40 −0 copying.txt
  2. BIN icons/cancel.png
  3. +46 −0 index.html
  4. +6,042 −0 js/prototype.js
  5. +171 −0 js/simplebox.js
  6. +16 −0 readme.txt
@@ -0,0 +1,40 @@
+- SimpleBox is available under the modified bsd license, and can be used and
+ redistributed under the conditions of this license. A copy of modified bsd
+ license is included in this file.
+
+- icons/cancel.png comes form FamFamFam Silk Icons. Author is Mark James. It is
+ licensed under a Creative Commons Attribution 2.5 License. See
+ http://www.famfamfam.com/lab/icons/silk/ for more informations.
+
+===============================================================================
+
+Software License Agreement (BSD License)
+
+Copyright (c) 2010, Arnaud Renevier
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+* Neither the name of Arnaud Renevier nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior
+ written permission of Parakey Inc.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file not shown.
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
+ <title>syj lightbox test page</title>
+ <script src="js/prototype.js" type="text/javascript"></script>
+ <script src="js/simplebox.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ document.observe("dom:loaded", function() {
+ var box = new SimpleBox("lightbox");
+ $("control").on('click', box.show.bind(box));
+ });
+ </script>
+ <style type="text/css">
+ .center {
+ text-align: center;
+ padding: 1px;
+ }
+ #control {
+ border: 1px solid red;
+ padding: 6px;
+ -moz-border-radius: 20%;
+ -webkit-border-radius: 20%;
+ }
+ #lightbox {
+ width: 40%;
+ margin: auto;
+ background-color: white;
+ padding-top: 30px;
+ padding-bottom: 30px;
+ border: 1px dotted black;
+ }
+ </style>
+</head>
+<body>
+
+<p class="center">This document is a simple lightbox example</p>
+<p class="center"><span id="control">clic here to show lightbox</span></p>
+
+<div id="lightbox" class="center">
+ <p>lightbox content</p>
+ <p>lightbox can contain <em>any html</em></p>
+</div>
+
+</body>
+</html>
Oops, something went wrong.

0 comments on commit b3835eb

Please sign in to comment.