examOnline/WebRoot/js/elements.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
jQuery(document).ready(function(){
// Prettify
prettyPrint();
// tabbed widget
jQuery('.tabbedwidget').tabs();
// accordion widget
jQuery('.accordion').accordion({heightStyle: "content"});
// growl notification
if(jQuery('#growl').length > 0) {
jQuery('#growl').click(function(){
jQuery.jGrowl("Hello world!");
});
}
// another growl notification
if(jQuery('#growl2').length > 0) {
jQuery('#growl2').click(function(){
var msg = "This notification will live a little longer.";
jQuery.jGrowl(msg, { life: 5000});
});
}
// basic alert box
if(jQuery('.alertboxbutton').length > 0) {
jQuery('.alertboxbutton').click(function(){
//jQuery.alerts.dialogClass = 'customStyle';
jAlert('This is a custom alert box', 'Alert Dialog', function(){
//jQuery.alerts.dialogClass = null; // reset to default
});
});
}
// confirm box
if(jQuery('.confirmbutton').length > 0) {
jQuery('.confirmbutton').click(function(){
jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) {
jAlert('Confirmed: ' + r, 'Confirmation Results');
});
});
}
// promptbox
if(jQuery('.promptbutton').length > 0) {
jQuery('.promptbutton').click
(function(){
jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
if( r ) alert('You entered ' + r);
});
});
}
// alert with html
if(jQuery('.alerthtmlbutton').length > 0) {
jQuery('.alerthtmlbutton').click(function(){
jAlert('You can use HTML, such as <strong>bold</strong>, <em>italics</em>, and <u>underline</u>!');
});
后面还有 136 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。