Browse Source

* upd

modules
RubaXa 11 years ago
parent
commit
80ff5555dc
  1. 8
      Gruntfile.js
  2. 22
      MIT-LICENSE.md
  3. 4
      README.md
  4. 25
      index.html
  5. 5
      package.json
  6. 15
      st/app.css

8
Gruntfile.js

@ -32,10 +32,10 @@ module.exports = function (grunt){
instrumentedFiles: 'temp/',
htmlReport: 'report/coverage',
coberturaReport: 'report/',
linesThresholdPct: 95,
statementsThresholdPct: 95,
functionsThresholdPct: 95,
branchesThresholdPct: 95
linesThresholdPct: 90,
statementsThresholdPct: 90,
functionsThresholdPct: 90,
branchesThresholdPct: 90
}
}
},

22
MIT-LICENSE.md

@ -0,0 +1,22 @@
## MIT LICENSE
Copyright 2013 Lebedev Konstantin <ibnRubaXa@gmail.com>
http://rubaxa.github.io/Ply/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4
README.md

@ -0,0 +1,4 @@
# Ply
Amazing layer/modal/dialog system. Wow!

25
index.html

@ -15,6 +15,8 @@
</head>
<body>
<div style="height: 50px;"></div>
<h1 title="Try demo!"><u>Ply</u></h1>
<div class="container">
@ -95,21 +97,6 @@
hljs.configure({ classPrefix: '' });
Ply.dialog({
foo: {
data: 'Foo!',
next: 'bar',
nextEffect: 'inner'
},
bar: {
data: {
text: 'Bar!',
ok: 'Wow!'
}
}
});
$('.example')
.each(function () {
var $el = $(this);
@ -184,12 +171,18 @@
cancel: 'No'
},
back: 'Jonna',
backEffect: 'inner',
next: 'Jonna-01',
nextEffect: '3d-sign'
},
'Jonna': {
data: 'Jonna Lee (born Jonna Emily Lee Nilsson, October 3, 1981) is a singer-songwriter from Linköping, Sweden, currently residing in Stockholm. Lee is best known for being the creator and artist of iamamiwhoami. Lee started her own label "To whom it may concern" in 2010.',
data: {
children: [{
text: 'Jonna Lee is a singer-songwriter from Linköping, Sweden. Lee is best known for being the creator and artist of iamamiwhoami. Lee started her own label "To whom it may concern" in 2010.',
css: { maxWidth: '400px' }
}]
},
back: 'next',
next: 'Jonna-01',
nextEffect: 'fade'

5
package.json

@ -23,7 +23,10 @@
"layer",
"modal",
"dialog",
"lightbox"
"lightbox",
"alert",
"confirm",
"prompt"
],
"author": "Konstantin Lebedev <ibnRubaXa@gmail.com>",
"license": "MIT"

15
st/app.css

@ -30,7 +30,6 @@ h1 {
text-shadow: 0 1px 3px rgba(0,0,0,.2);
font-size: 200px;
text-align: center;
margin-top: 50px;
margin-bottom: 50px;
}
h1 u {
@ -68,11 +67,12 @@ h2 {
}
.example {
top: 0;
cursor: pointer;
opacity: 0.95;
position: relative;
transition: all 0.3s;
}
.example:hover:after {
.example:after {
top: 50%;
left: 50%;
line-height: 0;
@ -82,12 +82,17 @@ h2 {
font-size: 100px;
position: absolute;
display: block;
opacity: .7;
opacity: 0;
transition: opacity 0.2s;
}
.example:hover {
opacity: 1;
top: -5px;
box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.example:hover:after {
opacity: 0.7;
}
pre code {
background-color: #fff;

Loading…
Cancel
Save