Created
July 2, 2015 08:09
-
-
Save xiajngsi/29baafb4cc608f31d08e to your computer and use it in GitHub Desktop.
model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".dia").on("click",function(){ | |
var $wrap = $('<div class="alertWrap"></div>'); | |
var $content = $('<div class="alert"></div>'); | |
var str='<table><tbody><tr><td colspan="6"><i class="close" style="float: right;">X</i></td></tr>'+ | |
'<tr><td><input type="password" maxlength="1"/></td><td><input type="password" maxlength="1"/></td><td><input type="password"/></td><td><input type="password"/></td><td><input type="password"/></td><td><input type="text"/></td></tr></tbody></table>'; | |
//* $content.html(str);*// | |
var msg = 'aaa'; | |
$content.html(str); | |
$wrap.append($content); | |
$("body").append($wrap); | |
var windowHeight = $(window).height(); | |
var pt = (windowHeight - 100)/2; | |
$wrap.css("padding-top",pt).fadeIn(800); | |
$(".close").click(function(){ | |
$wrap.fadeOut(800).remove(); | |
}); | |
/*setTimeout(function(){ | |
$wrap.fadeOut(800).remove(); | |
},1000);*/ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment