some code cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-26 21:55:38 +04:00
parent 5e83454e87
commit 182f788b33
2 changed files with 3 additions and 14 deletions

View File

@ -208,7 +208,7 @@ $(document).ready(function(){
</div>
<div name="example-layer" class="hidden" onclick="window.location='#example-layer'" style="position:absolute; left:100px; top:400px; width: 300px; height:50px; text-align: center; padding: 15px; border: solid gray 5px; background: silver; color: white; cursor: hand">
<div name="example-layer" class="hidden" onclick="window.location='#example-layer'" style="position:absolute; left:100px; top:400px; width: 300px; height:50px; text-align: center; padding: 15px; border: solid gray 5px; background: white; color: gray; cursor: hand">
<h3>This is an example layer</h3>
<i>click or tap to hide</i>
</div>

15
jli.js
View File

@ -110,18 +110,6 @@ function overlayMessage(text){
// XXX might be good to use apply here...
function doWithoutTransitions(obj, func, time){
if(time == null){
time = 5
}
obj.addClass('unanimated')
var res = func()
setTimeout(function(){obj.removeClass('unanimated')}, time)
return res
}
function unanimated(obj, func, time){
return function(){
if(time == null){
@ -134,6 +122,8 @@ function unanimated(obj, func, time){
}
}
// Return a scale value for the given element(s).
// NOTE: this will only return a single scale value...
function getElementScale(elem){
@ -172,7 +162,6 @@ function setElementScale(elem, scale){
/************************************************ jQuery extensions **/
jQuery.fn.reverseChildren = function(){
return $(this).each(function(_, e){
return $(e).append($(e).children().detach().get().reverse())