首页 > 编程语言 >javascript: jquery-confirm.js

javascript: jquery-confirm.js

时间:2022-12-02 11:55:12浏览次数:47  
标签:jquery function scale confirm javascript js fa true col

 

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">		
<title>jquery-confirm.js | The multipurpose alert & confirm</title>
<meta name="Description" content="geovindu"/>
<meta name="Keywords" content="geovindu"/>
<meta name="author" content="geovindu"/>	
	    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  <script  src="js/jquery-3.6.0.js"></script>
  <script src="ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
  <link rel='stylesheet' href='bootstrap/4.6.2/css/bootstrap.min.css'>
  <link rel="stylesheet" href="css/main.css">
		 <!-- Add the minified version of files from the /dist/ folder. -->
    <!-- jquery-confirm files -->
    <link rel="stylesheet"
          type="text/css"
          href="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.css"/>
    <script type="text/javascript"
            src="ajax/libs/jqueryconfirm/3.3.4/jquery-confirm.js"></script>
    <!--<script type="text/javascript"-->
    <!--src="dist/jquery-confirm.min.js"></script>-->
    <!--END jquery-confirm files-->
	
    <link rel="stylesheet"
          id="bs-stylesheet"
          href="du/libs/bs3.css">

    <link rel="stylesheet"
          href="du/libs/bundled.css">
    <link rel="stylesheet"
          href="du/demo.css">

 
</head>

<body data-spy="scroll"
      data-target=".navbar">
	<div class="container">
   <h2>Themes</h2>

                <p>jquery-confirm comes loaded with themes for all common use cases.</p>

                <div class="row">
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-1">Modern</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-3">Material</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-4">Bootstrap</button>
                    </div>
                    <div class="col-md-3">
                        <button class="btn btn-info btn-block example-the-2">Supervan</button>
                    </div>
                </div>
	</div>
	 <script type="text/javascript">
		 /*Supervan风格 透明
https://github.com/craftpip/jquery-confirm
jconfirm.defaults = {
    title: 'geovindu',
    titleClass: '',
    type: 'default',
    typeAnimated: true,
    draggable: true,
    dragWindowGap: 15,
    dragWindowBorder: true,
    animateFromElement: true,
    smoothContent: true,
    content: 'Are you sure to continue?',
    buttons: {},
    defaultButtons: {
        ok: {
            action: function () {
            }
        },
        close: {
            action: function () {
            }
        },
    },
    contentLoaded: function(data, status, xhr){
    },
    icon: '',
    lazyOpen: false,
    bgOpacity: null,
    theme: 'light',
    animation: 'scale',
    closeAnimation: 'scale',
    animationSpeed: 400,
    animationBounce: 1,
    rtl: false,
    container: 'body',
    containerFluid: false,
    backgroundDismiss: false,
    backgroundDismissAnimation: 'shake',
    autoClose: false,
    closeIcon: null,
    closeIconClass: false,
    watchInterval: 100,
    columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
    boxWidth: '50%',
    scrollToPreviousElement: true,
    scrollToPreviousElementAnimate: true,
    useBootstrap: true,
    offsetTop: 40,
    offsetBottom: 40,
    bootstrapClasses: {
        container: 'container',
        containerFluid: 'container-fluid',
        row: 'row',
    },
    onContentReady: function () {},
    onOpenBefore: function () {},
    onOpen: function () {},
    onClose: function () {},
    onDestroy: function () {},
    onAction: function () {}
};*/
		 /*
		 $.confirm({
    title: 'Encountered an error!',
    content: 'Something went downhill, this may be serious',
    type: 'red',
    typeAnimated: true,
    buttons: {
        tryAgain: {
            text: 'Try again',
            btnClass: 'btn-red',
            action: function(){
            }
        },
        close: function () {
        }
    }
});*/
		 
		 
		 
                    $('.example-the-1').on('click', function(){
                        $.confirm({
                            icon: 'fa fa-smile-o',
                            theme: 'modern',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'blue',
                        });
                    });
                    $('.example-the-2').on('click', function(){
                        $.confirm({
							title: '涂聚文!',
							content: '你好,Geovin Du',    					
    						typeAnimated: true,
                            icon: 'fa fa-question-circle-o',
                            theme: 'supervan',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
                    $('.example-the-3').on('click', function(){
                        $.confirm({
                            icon: 'fa fa-question',
                            theme: 'material',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });
                    $('.example-the-4').on('click', function(){
                        $.confirm({
	 							title: 'Encountered an error!',
								content: 'Something went downhill, this may be serious',    					
    						typeAnimated: true,
                            icon: 'fa fa-question',
                            theme: 'bootstrap',
                            closeIcon: true,
                            animation: 'scale',
                            type: 'orange',
                        });
                    });

	</script>
</body>
</html>

  

标签:jquery,function,scale,confirm,javascript,js,fa,true,col
From: https://www.cnblogs.com/geovindu/p/16944026.html

相关文章

  • jquery中$.each小结
    在jquery中,$each的用法比较常见,下面小结下1)基本用法//ARRAYSvararr=['one','two','three','four','five'];$.each(arr,funct......
  • jquery中的一个小TIPS:鼠标移动到连接时发出声音
    这个TIPS其实很简单的,实现的效果是:当鼠标移动到链接上时,则可以发出声音,其实很简单,代码如下:<p><ahref="#"class="click">Clickherefors......
  • jquery判断图片是否完整加载了
    这里其实是个tips,目的是判断每张图片是否能正确完整加载了:(document).ready(function(){$('img').error(function(){ $.post('ajax-image......
  • spring mvc下css js中的jsession id?
    在http://www.mkyong.com/spring-mvc/jsp-jsessionid-added-to-css-and-js-link/中提到了在springmvc+jsp中,对资源文件的引入问题,比如:<html><hea......
  • javascript中generator快速小结
    1基本例子  function*generatorFunc(){console.log("任务一");yield1;console.log("任务二");yield*generatorSubFunc();console.log("任务三");return......
  • jquery工具类笔记
    1$browswer对象获得浏览器信息<scripttype="text/javascript">$(function(){varstrTmp="您的浏览器名称是:";if($.browser.msie){//I......
  • 通过js创建input标签上传文件自动化调研总结
    通过js创建input标签上传文件自动化调研总结:1、原因:前端通过js添加的input,当前没有后面两行,所以没有添加到dom树,无法通过ChooseFile自动化2、跨平台解决方案:添加后面两......
  • js中数组追加和删除
    1.push 往后追加letarr=[1,2,3,4];arr.push(5);console.log(arr);//得到[1,2,3,4,5] 2.unshift方法往前追加letarr=[1,2,3,4];arr.unshift(5);console.log(arr);......
  • Require.js中shim的用法
    普通js文件加载 //test.jsfunctiontest(){}//配置require.config({paths:{test:'lib/shim/test'},shim:{test:{......
  • 模块化开发RequireJS之shim配置
    模块化开发RequireJS之shim配置weixin_33971130于 2017-12-0711:31:00 发布185 收藏 1文章标签: javascript ViewUI 一、shimrequirejs使用AMD......