diff --git a/css/fonts/glyphicons-halflings-regular (1).eot b/css/fonts/glyphicons-halflings-regular (1).eot new file mode 100644 index 0000000..4a4ca86 Binary files /dev/null and b/css/fonts/glyphicons-halflings-regular (1).eot differ diff --git a/css/fonts/glyphicons-halflings-regular.eot b/css/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000..4a4ca86 Binary files /dev/null and b/css/fonts/glyphicons-halflings-regular.eot differ diff --git a/css/fonts/glyphicons-halflings-regular.svg b/css/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 0000000..94fb549 --- /dev/null +++ b/css/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/css/fonts/glyphicons-halflings-regular.ttf b/css/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000..67fa00b Binary files /dev/null and b/css/fonts/glyphicons-halflings-regular.ttf differ diff --git a/css/fonts/glyphicons-halflings-regular.woff b/css/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000..8c54182 Binary files /dev/null and b/css/fonts/glyphicons-halflings-regular.woff differ diff --git a/css/images/backtop.png b/css/images/backtop.png new file mode 100644 index 0000000..4988507 Binary files /dev/null and b/css/images/backtop.png differ diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..aa3902e --- /dev/null +++ b/css/style.css @@ -0,0 +1,2487 @@ +html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-moz-box-sizing:content-box; box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{*{color:#000 !important;text-shadow:none !important;background:transparent !important;box-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff !important}.navbar{display:none}.table td,.table th{background-color:#fff !important}.btn > .caret,.dropup > .btn > .caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table-bordered th,.table-bordered td{border:1px solid #ddd !important}} +*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} +*:before, +*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} +html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)} +body{font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff} +input, +button, +select, +textarea{font-family:inherit;font-size:inherit;line-height:inherit} +a{color:#428bca;text-decoration:none;} +a:hover, +a:focus{color:#2a6496;text-decoration:underline} +a:focus{outline: none;} +figure{margin:0} +img{vertical-align:middle;max-width: 100%;} +hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee} +.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0} +h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit} +h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#999} +h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px} +p{margin:0 0 10px} +.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4} +@media (min-width:768px){ + .lead{font-size:21px} +} +small, +.small{font-size:85%} +cite{font-style:normal} +.text-left{text-align:left} +.text-right{text-align:right} +.text-center{text-align:center} +.text-justify{text-align:justify} +.text-muted{color:#999} +.text-primary{color:#428bca} +a.text-primary:hover{color:#3071a9} +.text-success{color:#3c763d} +a.text-success:hover{color:#2b542c} +.text-info{color:#31708f} +a.text-info:hover{color:#245269} +.text-warning{color:#8a6d3b} +a.text-warning:hover{color:#66512c} +.text-danger{color:#a94442} +a.text-danger:hover{color:#843534} +.bg-primary{color:#fff;background-color:#428bca} +a.bg-primary:hover{background-color:#3071a9} +.bg-success{background-color:#dff0d8} +a.bg-success:hover{background-color:#c1e2b3} +.bg-info{background-color:#d9edf7} +a.bg-info:hover{background-color:#afd9ee} +.bg-warning{background-color:#fcf8e3} +a.bg-warning:hover{background-color:#f7ecb5} +.bg-danger{background-color:#f2dede} +a.bg-danger:hover{background-color:#e4b9b9} +.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee} +ul, +ol{margin-top:0;margin-bottom:10px} +ul ul, +ol ul, +ul ol, +ol ol{margin-bottom:0} +.list-unstyled{padding-left:0;list-style:none} +.list-inline{padding-left:0;margin-left:-5px;list-style:none} +.list-inline > li{display:inline-block;padding-right:5px;padding-left:5px} +dl{margin-top:0;margin-bottom:20px} +dt, +dd{line-height:1.42857143} +dt{font-weight:bold} +dd{margin-left:0} +@media (min-width:768px){ + .dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap} + .dl-horizontal dd{margin-left:180px} +} +abbr[title], +abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999} +.initialism{font-size:90%;text-transform:uppercase} +blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee} +blockquote p:last-child, +blockquote ul:last-child, +blockquote ol:last-child{margin-bottom:0} +blockquote footer, +blockquote small, +blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#999} +blockquote footer:before, +blockquote small:before, +blockquote .small:before{content:'\2014 \00A0'} +.blockquote-reverse, +blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0} +.blockquote-reverse footer:before, +blockquote.pull-right footer:before, +.blockquote-reverse small:before, +blockquote.pull-right small:before, +.blockquote-reverse .small:before, +blockquote.pull-right .small:before{content:''} +.blockquote-reverse footer:after, +blockquote.pull-right footer:after, +.blockquote-reverse small:after, +blockquote.pull-right small:after, +.blockquote-reverse .small:after, +blockquote.pull-right .small:after{content:'\00A0 \2014'} +blockquote:before, +blockquote:after{content:""} +address{margin-bottom:20px;font-style:normal;line-height:1.42857143} +code, +kbd, +pre, +samp{font-family:Menlo, Monaco, Consolas, "Courier New", monospace} +code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px} +kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0, 0, 0, .25)} +pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px} +pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0} + + + +fieldset{min-width:0;padding:0;margin:0;border:0} +legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5} +label{display:inline-block;margin-bottom:5px;font-weight:bold} +input[type="search"]{-webkit-box-sizing:border-box; -moz-box-sizing:border-box;box-sizing:border-box} +input[type="radio"], +input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;/* IE8-9 */ + line-height:normal} +input[type="file"]{display:block} +input[type="range"]{display:block;width:100%} +select[multiple], +select[size]{height:auto} +input[type="file"]:focus, +input[type="radio"]:focus, +input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px} +output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555} +.form-control{display:block;width:100%;height:34px;font-size:14px;line-height:1.42857143;background-color:#fff;background-image:none;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;} +.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6)} +.form-control::-moz-placeholder{color:#999;opacity:1} +.form-control:-ms-input-placeholder{color:#999} +.form-control::-webkit-input-placeholder{color:#999} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1} +textarea.form-control{height:auto} +input[type="search"]{-webkit-appearance:none} +input[type="date"]{line-height:34px} +.form-group{margin-bottom:15px} +.radio, +.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px} +.radio label, +.checkbox label{display:inline;font-weight:normal;cursor:pointer} +.radio input[type="radio"], +.radio-inline input[type="radio"], +.checkbox input[type="checkbox"], +.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px} +.radio + .radio, +.checkbox + .checkbox{margin-top:-5px} +.radio-inline, +.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer} +.radio-inline + .radio-inline, +.checkbox-inline + .checkbox-inline{margin-top:0;margin-left:10px} +input[type="radio"][disabled], +input[type="checkbox"][disabled], +.radio[disabled], +.radio-inline[disabled], +.checkbox[disabled], +.checkbox-inline[disabled], +fieldset[disabled] input[type="radio"], +fieldset[disabled] input[type="checkbox"], +fieldset[disabled] .radio, +fieldset[disabled] .radio-inline, +fieldset[disabled] .checkbox, +fieldset[disabled] .checkbox-inline{cursor:not-allowed} +.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px} +select.input-sm{height:30px;line-height:30px} +textarea.input-sm, +select[multiple].input-sm{height:auto} +.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px} +select.input-lg{height:46px;line-height:46px} +textarea.input-lg, +select[multiple].input-lg{height:auto} +.has-feedback{position:relative} +.has-feedback .form-control{padding-right:42.5px} +.has-feedback .form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline{color:#3c763d} +.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075)} +.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168} +.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d} +.has-success .form-control-feedback{color:#3c763d} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline{color:#8a6d3b} +.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075)} +.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b} +.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b} +.has-warning .form-control-feedback{color:#8a6d3b} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline{color:#a94442} +.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075)} +.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483} +.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442} +.has-error .form-control-feedback{color:#a94442} +.form-control-static{margin-bottom:0} +.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373} +@media (min-width:768px){.form-inline .form-group{ display:inline-block;margin-bottom:0;vertical-align:middle;} + .form-inline .form-control{ display:inline-block;width:auto;vertical-align:middle;} + .form-inline .input-group > .form-control{ width:100%;} + .form-inline .control-label{ margin-bottom:0;vertical-align:middle;} + .form-inline .radio, + .form-inline .checkbox{ display:inline-block;padding-left:0;margin-top:0;margin-bottom:0;vertical-align:middle;} + .form-inline .radio input[type="radio"], + .form-inline .checkbox input[type="checkbox"]{ float:none;margin-left:0;} + .form-inline .has-feedback .form-control-feedback{ top:0;} +} +.form-horizontal .control-label, +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0} +.form-horizontal .radio, +.form-horizontal .checkbox{min-height:27px} +.form-horizontal .form-group{margin-right:-15px;margin-left:-15px} +.form-horizontal .form-control-static{padding-top:7px} +@media (min-width:768px){.form-horizontal .control-label{ text-align:right;} +} +.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px} +.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none; -moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px} +.btn:focus, +.btn:active:focus, +.btn.active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px} +.btn:hover, +.btn:focus{color:#333;text-decoration:none} +.btn:active, +.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0, 0, 0, .125);box-shadow:inset 0 3px 5px rgba(0, 0, 0, .125)} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65} +.btn-default{color:#333;background-color:#fff;border-color:#ccc} +.btn-default:hover, +.btn-default:focus, +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad} +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default{background-image:none} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc} +.btn-default .badge{color:#fff;background-color:#333} +.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd} +.btn-primary:hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e} +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary{background-image:none} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd} +.btn-primary .badge{color:#428bca;background-color:#fff} +.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c} +.btn-success:hover, +.btn-success:focus, +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439} +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success{background-image:none} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c} +.btn-success .badge{color:#5cb85c;background-color:#fff} +.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da} +.btn-info:hover, +.btn-info:focus, +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc} +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info{background-image:none} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da} +.btn-info .badge{color:#5bc0de;background-color:#fff} +.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236} +.btn-warning:hover, +.btn-warning:focus, +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512} +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning{background-image:none} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236} +.btn-warning .badge{color:#f0ad4e;background-color:#fff} +.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a} +.btn-danger:hover, +.btn-danger:focus, +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925} +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger{background-image:none} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a} +.btn-danger .badge{color:#d9534f;background-color:#fff} +.btn-link{font-weight:normal;color:#428bca;cursor:pointer;border-radius:0} +.btn-link, +.btn-link:active, +.btn-link[disabled], +fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none} +.btn-link, +.btn-link:hover, +.btn-link:focus, +.btn-link:active{border-color:transparent} +.btn-link:hover, +.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none} +.btn-lg, +.btn-group-lg > .btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px} +.btn-sm, +.btn-group-sm > .btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px} +.btn-xs, +.btn-group-xs > .btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px} +.btn-block{display:block;width:100%;padding-right:0;padding-left:0} +.btn-block + .btn-block{margin-top:5px} +input[type="submit"].btn-block, +input[type="reset"].btn-block, +input[type="button"].btn-block{width:100%} + +.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear} +.fade.in{opacity:1} + + +.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2} +.close:hover, +.close:focus{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5} +button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:transparent;border:0} +.modal-open{overflow:hidden} +.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch;outline:0} +.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out; -moz-transition: -moz-transform .3s ease-out;-o-transition: -o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);transform:translate(0, -25%)} +.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0)} +.modal-dialog{position:relative;width:auto;margin:10px} +.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0, 0, 0, .2);border-radius:6px;outline:none;-webkit-box-shadow:0 3px 9px rgba(0, 0, 0, .5);box-shadow:0 3px 9px rgba(0, 0, 0, .5)} +.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000} +.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0} +.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5} +.modal-header{min-height:16.42857143px;padding:15px;border-bottom:1px solid #e5e5e5} +.modal-header .close{margin-top:-2px} +.modal-title{margin:0;line-height:1.42857143} +.modal-body{position:relative;padding:20px} +.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5} +.modal-footer .btn + .btn{margin-bottom:0;margin-left:5px} +.modal-footer .btn-group .btn + .btn{margin-left:-1px} +.modal-footer .btn-block + .btn-block{margin-left:0} +@media (min-width:768px){.modal-dialog{ width:600px;margin:30px auto;} + .modal-content{ -webkit-box-shadow:0 5px 15px rgba(0, 0, 0, .5);box-shadow:0 5px 15px rgba(0, 0, 0, .5);} +} + +.popover{position: absolute;top: 0;left: 0;z-index: 1010;display: none;max-width: 276px;padding: 1px;text-align: left;white-space: normal;background-color: #fff;background-clip: padding-box;border: 1px solid #ccc;border: 1px solid rgba(0, 0, 0, .2);border-radius: 6px;-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); box-shadow: 0 5px 10px rgba(0, 0, 0, .2)} +.popover.top{margin-top: -10px} +.popover.right{margin-left: 10px} +.popover.bottom{margin-top: 10px} +.popover.left{margin-left: -10px} +.popover-title{padding: 8px 14px;margin: 0;font-size: 14px;font-weight: normal;line-height: 18px;background-color: #f7f7f7;border-bottom: 1px solid #ebebeb;border-radius: 5px 5px 0 0} +.popover-content{padding: 0} +.popover > .arrow, +.popover > .arrow:after{position: absolute;display: block;width: 0;height: 0;border-color: transparent;border-style: solid} +.popover > .arrow{border-width: 11px} +.popover > .arrow:after{content: "";border-width: 10px} +.popover.top > .arrow{bottom: -11px;left: 50%;margin-left: -11px;border-top-color: #999;border-top-color: rgba(0, 0, 0, .25);border-bottom-width: 0} +.popover.top > .arrow:after{bottom: 1px;margin-left: -10px;content: " ";border-top-color: #fff;border-bottom-width: 0} +.popover.right > .arrow{top: 50%;left: -11px;margin-top: -11px;border-right-color: #999;border-right-color: rgba(0, 0, 0, .25);border-left-width: 0} +.popover.right > .arrow:after{bottom: -10px;left: 1px;content: " ";border-right-color: #fff;border-left-width: 0} +.popover.bottom > .arrow{top: -11px;left: 50%;margin-left: -11px;border-top-width: 0;border-bottom-color: #999;border-bottom-color: rgba(0, 0, 0, .25)} +.popover.bottom > .arrow:after{top: 1px;margin-left: -10px;content: " ";border-top-width: 0;border-bottom-color: #fff} +.popover.left > .arrow{top: 50%;right: -11px;margin-top: -11px;border-right-width: 0;border-left-color: #999;border-left-color: rgba(0, 0, 0, .25)} +.popover.left > .arrow:after{right: 1px;bottom: -10px;content: " ";border-right-width: 0;border-left-color: #fff} + +.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0} +.tooltip.in{filter:alpha(opacity=70);opacity:.7} +.tooltip.top{padding:5px 0;margin-top:-3px} +.tooltip.right{padding:0 5px;margin-left:3px} +.tooltip.bottom{padding:5px 0;margin-top:3px} +.tooltip.left{padding:0 5px;margin-left:-3px} +.tooltip-inner{max-width:200px;padding:4px 8px 3px;color:#eee;text-align:center;text-decoration:none;background-color:#000;border-radius:2px} +.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} +.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000} +.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000} +.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-width:5px 5px 0;border-top-color:#000} +.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000} +.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000} +.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000} +.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000} +.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000} + + +.label,.badge{position:relative;display:inline-block;padding:5px 7px;font-size:12px;line-height:14px;color:#ffffff;vertical-align:baseline;white-space:nowrap;background-color:#999999} +.badge{padding:1px 4px 0} +.label:empty,.badge:empty{display:none} +a.label:hover,a.label:focus,a.badge:hover,a.badge:focus{color:#ffffff;text-decoration:none;cursor:pointer} +.label-arrow{position:absolute;width:0;height:0;vertical-align:top;content:""} +.label .label-arrow{top:7px;right:-4px;border-left:4px solid #000000;border-top:4px solid transparent;border-bottom:4px solid transparent} +.label-important,.badge-important{background-color:#FF5E52;opacity: .9} +.label-important .label-arrow,.badge-important .label-arrow{border-left-color:#FF5E52;opacity: .9} +.label-warning,.badge-warning{background-color:#f89406} +.label-warning .label-arrow,.badge-warning .label-arrow{border-left-color:#f89406} +.label-success,.badge-success{background-color:#56af45} +.label-success .label-arrow,.badge-success .label-arrow{border-left-color:#56af45} +.label-info,.badge-info{background-color:#3a87ad} +.label-info .label-arrow,.badge-info .label-arrow{border-left-color:#3a87ad} +.label-inverse,.badge-inverse{background-color:#4A4A4A} +.label-inverse .label-arrow,.badge-inverse .label-arrow{border-left-color:#4A4A4A} +a.label-important:hover,a.badge-important:hover{opacity: 1} +a.label-important:hover .label-arrow,a.badge-important:hover .label-arrow{opacity: 1} +a.label-warning:hover,a.badge-warning:hover{background-color:#d57f05} +a.label-warning:hover .label-arrow,a.badge-warning:hover .label-arrow{border-left-color:#d57f05} +a.label-success:hover,a.badge-success:hover{background-color:#49953b} +a.label-success:hover .label-arrow,a.badge-success:hover .label-arrow{border-left-color:#49953b} +a.label-info:hover,a.badge-info:hover{background-color:#317292} +a.label-info:hover .label-arrow,a.badge-info:hover .label-arrow{border-left-color:#317292} +a.label-inverse:hover,a.badge-inverse:hover{background-color:#383838} +a.label-inverse:hover .label-arrow,a.badge-inverse:hover .label-arrow{border-left-color:#383838} + + +@font-face{font-family: 'Glyphicons Halflings';src: url('fonts/glyphicons-halflings-regular.eot');src: url('fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('fonts/glyphicons-halflings-regular.woff') format('woff'), url('fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg')}.glyphicon{position: relative;top: 1px;display: inline-block;font-family: 'Glyphicons Halflings';font-style: normal;font-weight: normal;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-fire-1:before{content:"\e104";color:red;}.glyphicon-fire-2:before{content:"\e104";color:red;}.glyphicon-fire-3:before{content:"\e104";color:red;}.glyphicon-fire-4:before{content:"\e104"}.glyphicon-fire-5:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"} + + + +/* + * base + * ==================================================== +*/ +a{color:#444;text-decoration:none} +a:hover,a:focus{color:#FF5E52;text-decoration:none} +::selection{background:#72d0eb;color:#fff;text-shadow:none} +::-moz-selection{background:#72d0eb;color:#fff;text-shadow:none} +.text-muted a{color: #999;text-decoration: underline;} +.text-muted a:hover{color: #FF5E52;} +.wp-video,.mejs-video,audio,canvas,progress,video,embed,iframe,.iframe{max-width: 100%;} +.wp-video{margin-bottom: 16px;} + +body, button, input, select, textarea{font-family:"Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif;} + +body{margin:0;font-size:14px;line-height:20px;color:#444;overflow-x: hidden;background-color: #eee;} + + +/* + * frame + * ==================================================== +*/ +.header{position: fixed;top: 0;bottom: 0;width: 190px;background-color: #f6f6f6;margin: 0;padding: 0;z-index: 99} + +.container{max-width: 1080px;/* background-color: #fff; */margin:0 auto;text-align:left;position:relative;*zoom:1;} +.container:before,.container:after{display:table;content:"";line-height:0} +.container:after{clear:both} + +.content-wrap{width:100%;float:left} +.content{margin-right:320px;margin-left: 190px;padding: 20px 25px 0;min-height: 800px;overflow: hidden;} +.sidebar{float:left;margin-left:-320px;width:300px;position:relative;} + +.error404 {background-color: #fff;} + +/* + * header + * ==================================================== +*/ +.logo{margin: 0;} +.logo a{display: block;height: 120px;overflow: hidden;background-color: #FF5E52;color: #fff;} + +.feeds{padding: 10px 0 10px 25px;margin-bottom: 10px;overflow: hidden;background-color: #f9f9f9;border-bottom: 1px solid #eee;line-height: 28px;} +.feeds-title{margin:0 0 7px -15px;padding: 0;color: #999;text-align: center;} +.feed{opacity: .8;color: #666;font-size: 12px;display: inline-block;width: 48%;} +.feed i{display: inline-block;width: 10px;height: 10px;border-radius: 2px;margin-right: 5px;position: relative;top: 1px;} +.feed:hover, .feed:active{opacity: 1;} +.feed-weibo i{background-color: #FF5E52;} +.feed-tqq i{background-color: #1FAEFF;} +.feed-facebook i{background-color: #2365DA;} +.feed-twitter i{background-color: #00D5E7;} +.feed-weixin i{background-color: #4BC916;} +.feed-rss i{background-color: #F1B305;} + +.feed-weibo:hover{color: #FF5E52;} +.feed-tqq:hover{color: #1FAEFF;} +.feed-facebook:hover{color: #2365DA;} +.feed-twitter:hover{color: #00D5E7;} +.feed-weixin:hover{color: #4BC916;} +.feed-rss:hover{color: #F1B305;} + +.deliver{text-align: center;padding: 0 15px;} +.deliver .btn{padding: 10px;border-width: 2px;border-color: #ddd;color: #777;} +.deliver .btn:hover{border-color: #ccc;color: #444;background-color: #f6f6f6;} +.deliver .glyphicon{top: 2px;margin-right: 3px;} + +.slinks{text-align: center;color: #999;font-size: 12px;line-height: 25px;} +.slinks a{color: #999;margin: 0 5px;} +.slinks a:hover{color: #666;text-decoration: underline;} + +.user-welcome{padding: 8px 8px 7px 58px;font-size: 12px;margin: 20px 15px 20px 15px;background-color: #EEEEEE;border-radius: 2px;box-shadow: -1px -1px 0 rgba(0,0,0,.1), inset -1px -1px 0 rgba(0,0,0,.03)} +.user-welcome .avatar{float: left;margin-left: -50px;width: 40px;height: 40px;border-radius: 8px;position: relative;top: -1px;} +.user-welcome strong{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;display: block;color: #FF5E52;} + +.user-logout{font-size:12px;text-align:center;margin-top: 17px;color: #999;margin-right: -30px;float: right;} +.user-logout a{color: #E5A61B;text-decoration: underline;} + + +/* + * nav + * ==================================================== +*/ +.nav{position:relative;font-size: 14px;border-bottom: 1px solid #EEEEEE;list-style: none;padding: 0;margin-bottom: 0;} +.nav li{position: relative;} +.nav li a{padding: 14px 10px;color:#fff;display: block;} +.nav li a:focus, +.nav li a:hover{color:#444;background-color:#fff;} + +.nav li.current-menu-item > a, +.nav li.current-menu-parent > a, +.nav li.current_page_item > a, +.nav li.current-post-ancestor > a{ + color:#FF5E52; + /*background-color: #fff;*/ + position:relative;z-index:2; +} + +.nav li ul{position:absolute;top:-2px;left:100%;/*min-width:115px;*/z-index:10;font-size:14px;border: 2px solid #eee;border-left: none;background-color: #444444;z-index: 2;list-style: none;margin: 0;padding: 5px 0;display: none;} +.nav li:hover > ul{display: block;} +.nav li ul > li > a{padding: 10px 6px;color: #fff;} +.nav li ul > li > a:hover{background-color: #F6F6F6;color: #555;} + +.nav .glyphicon{margin-right: 10px;top: 2px;} + + + +.btn-navbar{display:none;float:right;padding:5px 8px 6px;margin-left:5px;margin-right:5px;margin-top:11px;background-color:#404040} +.btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f9f9f9} +.btn-navbar .icon-bar + .icon-bar{margin-top:3px} +.dropdown-menu:before{content:'';display:inline-block;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);position:absolute;top:-5px;left:9px} +.dropdown-menu:after{content:'';display:inline-block;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid #ffffff;position:absolute;top:-4px;left:10px} +.dropdown-menu.pull-right{left:auto;right:0} +.dropdown-menu.pull-right:before{left:auto;right:6px} +.dropdown-menu.pull-right:after{left:auto;right:7px} +.dropdown-menu.pull-right .dropdown-menu{left:auto;right:100%;margin-left:0;margin-right:-1px} +.menu{margin-right:20px;margin-top:11px} + +.search-suggest.dropdown-menu > li > a{padding:4px 7px 3px} +.search-suggest span{float:right;color:#999} +.search-suggest .active span{color:#fff} + + +.pull-left{float: left;} +.pull-right{float: right;} + +/* + * pagination + * ==================================================== +*/ +.pagination{padding:20px 10px 1px 10px;background-color:#fff;text-align:center;clear:both} +.pagination ul{display:inline-block;*display:inline;*zoom:1;margin-left:0;margin-bottom:0;padding: 0} +.pagination ul > li{display:inline} +.pagination ul > li > a,.pagination ul > li > span{margin:0 5px;float:left;padding:8px 20px 7px;text-decoration:none;background-color:#ddd;color:#666;opacity: .88} +.pagination-multi ul > li > a,.pagination-multi ul > li > span{padding:7px 16px;margin:0 2px;font-size: 12px;} +.pagination ul > li > a:hover,.pagination ul > li > a:focus{opacity: 1} +.pagination ul > .active > a,.pagination ul > .active > span{background-color:#FF5E52;color:#fff} +.pagination ul > .active > a,.pagination ul > .active > span{cursor:default} +.pagination ul > li > span,.pagination ul > .disabled > span,.pagination ul > .disabled > a,.pagination ul > .disabled > a:hover,.pagination ul > .disabled > a:focus{color:#999999;background-color:transparent;cursor:default} +.pagination ul > li.next-page > a{background-color: #FF5E52;color: #fff;} + +.ias_trigger{margin: 20px 0;} +.ias_trigger a{background-color: #eee;display: block;line-height: 35px;text-align: center;font-size: 14px;color: #999;} +.ias_trigger a:hover{background-color: #ddd;color: #666;} + +.pagination-loading{font-size: 16px;text-align: center;color: #999;padding: 30px 0 40px;} +.pagination-loading .glyphicon{top: 2px} + +.pagenav{overflow:hidden;text-align:center;padding:20px} +.pagenav a,.pagenav .current,.pagenav .page-numbers{padding:4px 12px 3px;color:#666;display:inline-block;background-color:#eee;margin:0 1px} +.pagenav .current{background-color:#FF5E52;color:#fff} +.pagenav a:hover{background-color:#ccc;color:#444} + + +/* + * article nav + * ==================================================== +*/ +.article-nav{overflow:hidden;margin-bottom: 30px;font-size:14px;color:#bbb;clear: both;} +.article-nav span{float:left;position:relative;width: 50%;} +.article-nav span.article-nav-next{float:right;text-align:right} +.article-nav span.article-nav-next::before{content: '';position: absolute;left:0;top:0;height:100%;display: block;width: 1px;background-color: #eee;} +.article-nav a{color: #999;margin-right: 10px;display: inline-block;} +.article-nav span.article-nav-next a{margin-left: 10px;margin-right: 0;} +.article-nav a:hover{color: #FF5E52;} + + + +/* + * title + * ==================================================== +*/ +.title{/*position: relative;*/margin: 0;line-height: 32px;font-size: 18px;border-bottom: 2px solid #eee;} +.title strong{border-bottom: 2px solid #FF5E52;display: inline-block;position: relative;bottom: -2px;font-weight: bold;} +.title .pull-right{float: right;line-height: 32px;} +a.more { + margin-right: 15px; + font-size: 13px; + color: #f06000; + float: right; + font-family: inherit; + padding-top: 3px; +} +/* + * sticky + * ==================================================== +*/ +.sticky{overflow: hidden;margin-bottom: 0;} +.sticky ul{list-style: none;padding: 0;padding-top: 15px;overflow: hidden;} +.sticky li{width: 16.666%;float: left;margin-bottom: 2px;/*height: 218px;*/overflow: hidden;} +.sticky li a{display:block;margin-right: 10px;position: relative;color: #323232;text-align: center;font-weight: bolder;white-space: nowrap;} +.sticky a:hover{color: #FF5E52;} +.sticky img{display:block;width: 100%;margin-bottom: 5px;} + + +.focusmo{overflow: hidden;margin-bottom: 10px;} +.focusmo ul{list-style: none;margin: 0;padding-left: 50%;} +.focusmo li{width: 50%;float: left;margin-bottom: 10px;} +.focusmo a{margin-left: 10px;display: block;overflow: hidden;height: 128px;position: relative;} +.focusmo img{width: 100%;height: 100%;} + +.focusmo li.large{width: 100%;float: left;margin-left: -100%;} +.focusmo li.large a{height: 266px;margin-left: 0;} + +.focusmo h4{position: absolute;bottom:0;left:0;right:0;padding: 4px 10px 0;height:41px;overflow: hidden;background-color: #656565;background-color: rgba(0,0,0,.7);color: #fff;margin: 0;font-size: 12px;line-height: 17px;} +.focusmo .large h4{font-size: 16px;line-height: 34px;} + +.focusmo a:hover h4{background-color: #FF5E52;opacity: .9} + + +/* + * post relates + * ==================================================== +*/ +.relates{overflow:hidden;} +.relates ul{list-style:none;padding: 15px 0 0;overflow: hidden;margin-right: -10px;} + +.relates-model-thumb li{display: inline-block;vertical-align: top; width:16.66%;margin-bottom: 20px;} +.relates-model-thumb a{margin-right: 5px;display: block;} +.relates-model-thumb a img{width: 100%;margin-bottom: 5px;height: 70px;} + +.relates-model-text ul{margin-right: 0;list-style: disc;margin-left: 20px;color: #666;margin-bottom: 20px;} +.relates-model-text li{margin-bottom: 8px;margin-left: 20px;} + +.relates a{color: #666;} +.relates a:hover{color: #FF5E52;} + + +/*.thumb{max-height:160px;}*/ +/* + * excerpt + * ==================================================== +*/ +.excerpt{padding:25px 0;border-bottom: 1px solid #eee;position:relative;overflow: hidden;} +.excerpt header{margin:0 0 10px 0} +.excerpt .focus{position:relative;margin:10px -6px 0 0;overflow: hidden;} +/*.thumbnail{overflow: hidden;display: block;}*/ +.thumbnail .item{display: block;float: left;width: 25%;margin-bottom: 6px;} +.thumbnail .thumb{max-width: 240px;width: 100%;max-height: 132px;} +.focus .thumbnail .thumb{height: 132px;} +/*.thumbnail .thumb:hover{opacity: .9}*/ + +.thumb-span{margin-right: 6px;display: block;} + +.thumb-span{position:relative;font-family: 'Glyphicons Halflings';overflow: hidden;} +/*.thumb-span:hover .thumb{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);}*/ +.thumb-span::before{content:"";background-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;z-index:2} +/*.thumb-span::after{content:"\e003";color:rgba(255,255,255,.0);font-size:240px;position:absolute;top:50%;left:50%;margin:10px 0 0 -101px;z-index:3}*/ + +.thumb-span:hover::before{ background-color:rgba(0,0,0,.4);} +/*.thumb-span:hover::after{font-size:16px;margin:-6px 0 0 -8px;color:rgba(255,255,255,.6);}*/ + +.excerpt-one{position: relative;} +.excerpt-one .focus{float: right;width: 35%;margin-top: -15px;} +.excerpt-one .focus .item{width: 100%;} +.excerpt-one .note{margin-top: 6px;padding-right: 15px;} +.excerpt-one .note{margin-right: 35%;} + +.excerpt header .label{margin-right:5px;position:relative;top:-2px} +.excerpt header small{margin-left: 10px;} +.excerpt header small .glyphicon{margin-right: 2px;font-size: 13px;} + +.post-views .glyphicon{font-size: 13px;margin-right: 2px;top: 2px;} + +.excerpt h2{display:inline;font-size:22px;margin:0;font-weight:normal;position:relative;top:1px;line-height:25px} +.excerpt h2 strong{color:#8CAC52;margin-right:10px} +.excerpt h2 a{color: #444;} +.excerpt h2 a span{color:#FF5E52;} +.excerpt h2 a:hover{color: #FF5E52;} +.excerpt p{margin-bottom: 0;} +.excerpt .note{color:#777;font-size: 14px;line-height: 22px;margin-bottom: 10px;} +.excerpt .itag a{border-style:solid;border-width:1px;border-color:#e2e2e2 #ddd #ddd #e2e2e2;display:inline-block;margin-right:3px;border-radius:1px;padding:0 5px;line-height:18px} + +.excerpt .text-muted{font-size: 12px;} +.excerpt .views > span, .excerpt .views > a{margin-right: 20px;} + + +.post-like{text-decoration: none;} +.post-like i{margin-right: 5px;font-size: 13px;top: 2px;width: 13px;} +.post-like.actived{color: #FF5E52;} + +a.post-linkto{background-color: #51CC87;color: #fff;opacity: 0.85;filter:alpha(opacity=85);} +.excerpt a.post-linkto{float: right;display: inline-block;padding: 4px 12px;font-size: 12px;text-decoration: none;} +a.post-linkto:hover{opacity: 1;filter:alpha(opacity=100);color: #fff;} +.excerpt-multi .views > a.post-linkto{margin-right: 0;} + + +/* + * breadcrumbs + * ==================================================== +*/ +.breadcrumbs{padding: 5px 0 5px;font-size: 12px;text-align: left;} +.breadcrumbs small{font-size: 12px;font-family: serif;color: #bbb;margin: 0 2px;font-weight: bold;} + + +/* + * share + * ==================================================== +*/ +.share{overflow: hidden;margin-bottom: 20px;} +.share h5{float: left;margin-right: 5px;} +.share > div{float: left;} +.share a{text-decoration: none;} + + +/* + * article content + * ==================================================== +*/ +.article-content{} +.article-sidebar{width: 230px;float: right;position: relative;} +.article-meta{overflow: hidden;color: #999;font-size: 12px;list-style: none;margin: 0;padding: 0} +.article-meta li{float: left;margin-right: 20px;} +.article-meta a{color: #888;text-decoration: underline;} +.article-meta a:hover{color: #FF5E52;} + +.article-author{padding:15px 0;overflow: hidden;} +.article-header{padding:0 0 5px;border-bottom: 1px solid #eee;margin-bottom: 10px;} +.article-header .text-muted{font-size: 12px;margin-bottom: 0;} +.article-title{font-size: 0.4rem;margin: 5px;line-height: 0.4rem;} +.article-title a{color: #444;} +.article-title a span{color: #FF5E52;} +.article-title a:hover{color: #FF5E52;text-decoration: underline;} + + + +.article-content{font-size:15px;line-height:25px;word-wrap:break-word;} +.article-content img{margin: 5px 0; display:block;max-width:100%;height:auto} +.article-content h3,.article-content h4,.article-content h5{/*border-bottom:#eee 1px solid;*/padding-bottom:5px;margin-bottom:16px;font-weight:normal;color: #444;} +.article-content h2{/*color: #444;font-size:18px;font-weight:normal;margin:16px 0;padding:10px 0;line-height:18px;border-bottom: 1px solid #eee;*/} +.article-content h3{font-size:16px;padding-bottom: 0;} +.article-content h4{font-size:15px} +h4.ctitle { + font-size: 18px; + margin: 10px 0; + padding-left: 8px; + border-left: 3px solid #ebb447; + color: #444444; +} +ul.down-list{padding-left: 20px;width: 100%;overflow: hidden;} +.down-list li {display: flow-root;} +ul.down-list a { + padding-right: 15px; + color: #ebb447; + float: right; +} +ul.down-list li:hover{ + border-bottom: 1px solid #444444; +} +ul.down-list span { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + width: 75%; + display: inline-block; +} +.article-content h5{font-size:14px} +.article-content ul, .article-content ol{margin:0 0 16px 0} +.article-content p{margin-bottom:16px;margin: 0;} +.article-content pre{word-wrap:break-word} +.article-content table{border-top:solid 1px #ddd;border-left:solid 1px #ddd;width:100%;margin-bottom:16px} +.article-content table th{background-color:#f9f9f9;text-align:center} +.article-content table td,.article-content table th{border-bottom:solid 1px #ddd;border-right:solid 1px #ddd;padding:5px 10px} +.article-content .alignnone{margin:0 auto;} +.article-content .alignleft{float:left;text-align:left;margin-right:10px} +.article-content .aligncenter{margin: 0 auto;text-align: center;display: block;} +.article-content .alignright{float:right;text-align:right;margin-left:10px} +.article-content .wp-caption{margin-bottom: 20px;background-color: #f6f6f6;padding: 10px 10px 1px;max-width: 100%} +.article-content .wp-caption img{margin: 0 0 5px;} +.article-content .wp-caption p{margin-bottom: 10px;} +.article-content .wp-caption.alignnone{text-align: center;} +.article-content .wp-caption-text{} +.article-content .wp-caption:hover{} +.article-content .wp-caption:hover .wp-caption-text{color: #FF5E52;} +.article-content a{/*color:#428bca;text-decoration:underline*/} +.article-content a:hover{color:#FF5E52} + + +.post-copyright{clear: both;background-color:#f2f2f2;font-size:12px;color:#999;padding:6px 15px 5px;border-radius:2px;text-align:center;margin-top: 10px;} +.post-copyright a{color:#999;text-decoration:none;} + +.post_p_indent .article-content p{text-indent: 30px;} + +/* + * article tags + * ==================================================== +*/ +.article-tags{margin-bottom: 30px;text-align: center;margin-top: 30px;} +.article-tags a{display:inline-block;padding:3px 8px 2px;margin:0 4px 4px 0;color:#fff;font-size:12px;background-color:#FF5E52;opacity: 0.85;filter:alpha(opacity=85);text-decoration: none;} +.article-tags a:hover{opacity: 1;filter:alpha(opacity=100);color: #fff;} + + +.tag-clouds{overflow: hidden;} +.tag-clouds li{float:left;width:25%;margin-bottom:12px;padding-bottom:2px;height:76px;border-bottom:1px dotted #ddd;overflow: hidden;} +.tag-clouds strong{color:#666;margin-left:2px;margin-bottom: 10px;display: inline-block;} + +.article-info-text{margin-top:15px;font-size:14px} +.article-content pre,.comment pre{margin:20px 0;font:12px/20px 'courier new';background:#4A4A4A;padding:10px 20px;color:#F8F8D4;border:none} +.article-content blockquote{margin:15px auto;border:1px solid #e6e6e6;border-left-width:3px;padding:15px 27px 10px;background-color:#fbfbfb;font-size:14px;line-height: 20px;clear: both;} +.article-content blockquote p{margin:0;padding:0;margin-bottom:5px;font-size:14px;line-height: 20px;text-indent: 0;} + + +.article-paging{text-align: left;font-size: 12px;overflow: hidden;clear: both;padding: 1px 0 18px 0;} +.article-paging span{/* display: inline-block; *//* padding: 1px 5px; */background-color: #ddd;/* border: 1px solid #ddd; *//* border-radius: 2px; */color: #666;} +.article-paging a span{background-color: #2581BA;color: #FFF;} +.article-paging a:hover span{border-color: #bbb;} + +/* + * page title + * ==================================================== +*/ +.page-title{font-size:16px;margin:0;padding:0} +.page-title strong{font:bold 12px/18px arial;font-style:normal;color:#999;margin:0 10px} +.page-title em{font-style:normal;font-weight:normal;color:#080;font-size:12px} +.page-title .btn{font-weight:normal;margin-left:20px} +.page-title .btn:active{border-bottom-color:#ffffff} + + +/* + * widget + * ==================================================== +*/ +.widget{clear:both;margin-bottom: 10px;position: relative;background-color: #fff; */padding: 5; */padding: 1;padding: 10px;} +.widget.affix{width: 300px;} +.widget .title{border-bottom: 2px solid #eee;padding-top: 2px;} +.widget .title .btn{position:absolute;top:5px;right:10px;font-weight:normal;padding: 2px 7px 1px} + +.widget ul{*zoom:1;list-style: none;padding: 0} +.widget ul:before,.widget ul:after{display:table;content:"";line-height:0} +.widget ul:after{clear:both} + +.widget_ads img{display:block;max-width: 100%;} +.widget_ads_inner{position:relative;overflow:hidden} +.widget_ads .sell{display:block;border:solid 1px #d6d6d6;color:#999;text-align:center;height:123px;line-height:123px;font-weight:bold} +.widget_ads .sell:hover{border-color:#bbb;color:#777777} + +.widget ul.widget_tags_inner{overflow: hidden;padding-top: 5px;font-size: 12px;margin-right: -6px;} +.widget_tags_inner li{float: left;width: 16.66666%;margin-top: 2px;} +.widget_tags_inner a{color: #777;display: block;margin-right: 6px;background-color: #fafafa;padding: 4px 8px;height: 28px;border-left: 1px solid #ededed;overflow: hidden;} +.widget_tags_inner a:hover{color: #fff;background-color: #FF5E52;border-left-color: #FED426;border-left-width: 4px;} + + +.widget_postlist .items-01 li a{border-bottom:solid 1px #eee;overflow:hidden;position:relative;display:block;font-size:14px;padding:8px 90px 8px 0;min-height:76px;} +.widget_postlist .items-01 li a:hover{background-color:#F8FCFE;} +.widget_postlist .items-01 .text{margin-top:1px;display:block;} +.widget_postlist .items-01 .text span{color: #FF5E52;} +.widget_postlist .items-01 .thumbnail{position: absolute;right: 0;top: 8px;} +.widget_postlist .items-01 .thumbnail img{width:80px;/*height:60px*/} +.widget_postlist .items-01 .text-muted{margin-right:20px;font-size:12px} + +.widget_postlist{overflow: hidden;} +.widget_postlist .items-02{margin-right: -3%;overflow: hidden;} +.widget_postlist .items-02 li{float: left; width: 47%;margin-right: 3%;margin-top: 3%;} +.widget_postlist .items-02 a{position: relative;display: block;} +.widget_postlist .items-02 .thumb{height: 108px;} +.widget_postlist .items-02 .post-views{display: none;} +.widget_postlist .items-02 .text{display: block;position: absolute;top: 120%;left: 0;right: 0;padding: 4px 10px;background-color: #555;background-color: rgba(0,0,0,0.7);color: #fff;font-size: 12px;line-height: 16px;} +.widget_postlist .items-02 a:hover .text{top: auto;bottom: 0} + +.widget_postlist .items-03 li a{border-bottom:solid 1px #eee;overflow:hidden;position:relative;display:block;font-size:14px;padding:8px 0 8px 0;} +.widget_postlist .items-03 li a:hover{background-color:#F8FCFE;} +.widget_postlist .items-03 .text{margin-top:1px;display:inline;} +.widget_postlist .items-03 .text-muted{margin-left:20px;font-size:12px} + +.widget_links ul{padding:5px 0 0 0;font-size: 12px;} +.widget_links li{width: 50%;float: left;line-height: 32px;} + +.widget_comments a{display: block;padding: 10px 0 10px 46px;color: #666;font-size: 12px;border-bottom: 1px solid #eee;} +.widget_comments a:hover{border-bottom-color: #ddd;background-color: #fbfbfb;color: #444;} +.widget_comments .avatar{border-radius: 50%;width: 36px;height: 36px;float: left;margin-left: -46px;position: relative;bottom: -2px;} + +.header .search-form{width: 160px;padding-right: 48px;/*margin: 15px 0 0 15px;*/overflow: hidden;} +.header .search-form .btn{width: 48px;} +.header .search-form .form-control{border-width: 1px;} +.search-form{padding: 7px 0 0 0;position: relative;} +.search-form .form-control{color:#666;border:solid 2px #ddd;box-shadow: none;border-radius: 0;border-right: none;padding: 5px 5px 5px 10px;} +.search-form .form-control:focus{border-color: #ccc;} +.search-form .btn{position: absolute;bottom: 0;right: 0;box-shadow: none;width: 70px;padding:6px;border-radius: 0;background-color: #FF5E52;color: #fff;opacity: .85} +.search-form .btn:hover, +.search-form .btn:focus{opacity: 1} + +.header #bdcs{float: left;width: 220px;padding-right: 54px;margin: 12px 0 0 30px;} +.header #bdcs .bdcs-search-form-submit {width: 54px;} +.header #bdcs .bdcs-search-form-input{border-width: 1px;} +#bdcs{padding: 10px 70px 0 0;position: relative;} +#bdcs .bdcs-search-form-input{color:#666;border:solid 2px #ddd;box-shadow: none;border-radius: 0;border-right: none;padding: 5px 5px 5px 10px;height: 34px;display: block;width: 100%;} +#bdcs .bdcs-search-form-input:focus{border-color: #ccc;outline:none} +#bdcs .bdcs-search-form-submit {position: absolute;bottom: 0;right: 0;box-shadow: none;width: 70px;border-radius: 0;background-color: #FF5E52;color: #fff;opacity: .85;border:none;height: 34px;display:block} +#bdcs .bdcs-search-form-submit :hover, +#bdcs .bdcs-search-form-submit :focus{opacity: 1} + +.widget_categories ul{list-style: disc;margin-left: 18px;color: #999;} +.widget_categories li{margin-top: 7px;} +.widget_categories .children{margin-left: 20px;font-size: 12px;margin-bottom: 10px;} +.widget_categories .children li{margin-top: 5px;} +.widget_categories .postform{margin-top: 10px;width: 100%;height: 38px;font-size: 14px;border: 2px solid #ddd;padding: 0 5px;} + +.widget_rss .rsswidget img{display: none;} +.widget_rss li{border-bottom:solid 1px #eee;overflow:hidden;position:relative;display:block;font-size:14px;padding:10px 0;} +.widget_rss li:hover{background-color:#F8FCFE;} +.widget_rss .rss-date{display: block;font-size: 12px;color: #bbb;} +.widget_rss .rssSummary{font-size: 12px;color: #999;} +.widget_rss cite{font-size: 12px;} + +.widget_meta ul{list-style: disc;margin-left: 18px;color: #999;} +.widget_meta li{margin-top: 7px;} + +.widget_text .textwidget{/*margin-top: 10px;*/} + +.widget_archive ul{list-style: disc;margin-left: 18px;color: #999;} +.widget_archive li{margin-top: 7px;} +.widget_archive select{margin-top: 10px;width: 100%;height: 38px;font-size: 14px;border: 2px solid #ddd;padding: 0 5px;} + +.widget_calendar{overflow:hidden} +.widget_calendar table{width:100%;text-align:center;} +.widget_calendar table caption{padding:10px 0 5px;font-size:15px;} +.widget_calendar table #prev a,.widget_calendar table #next a{display:block;padding:0 10px} +.widget_calendar table #prev{text-align:left} +.widget_calendar table #next{text-align:right} +.widget_calendar table tbody td,.widget_calendar table tfoot td,.widget_calendar table thead th{padding:5px 3px;border:1px solid #eee;} +.widget_calendar table thead th{background-color:#fbfbfb} +.widget_calendar table tbody td a{display:block;margin:0 3px;background-color:#428BCA;color:#fff} +.widget_calendar table tbody td a:hover{background-color: #357EBD;} + +.tagcloud{margin-top: 5px;} +.tagcloud a{display: inline-block;margin: 5px 5px 0 0} + +.widget_nav_menu ul{list-style: disc;margin-left: 18px;color: #999;} +.widget_nav_menu li{margin-top: 7px;} +.widget_nav_menu ul ul{margin-left: 20px;font-size: 12px;margin-bottom: 10px;} +.widget_nav_menu ul ul li{margin-top: 5px;} +.widget_nav_menu .glyphicon{margin-right: 5px;color: #999;} + +.widget_recent_entries li{border-bottom:solid 1px #eee;overflow:hidden;position:relative;display:block;font-size:14px;padding:10px 0;} +.widget_recent_entries li:hover{background-color:#F8FCFE;} +.widget_recent_entries li .post-date{display: block;font-size: 12px;color: #999;} + +.widget_pages ul{list-style: disc;margin-left: 18px;color: #999;} +.widget_pages li{margin-top: 7px;} + + +.widget_textads { + border: none; +} +.widget_textads a { + display: block; + padding: 0 15px 15px; + border: 1px solid #eaeaea; + background-color: #fff; + font-size: 12px; +} +.widget_textads a h2 { + font-size: 20px; + font-weight: normal; +} +.widget_textads a p { + color: #999; + margin-bottom: 0; +} +.widget_textads a strong { + margin: -1px 0 0 0; + display: inline-block; + padding: 4px 15px; + color: #fff; + font-size: 14px; + font-weight: normal; +} +.widget_textads a:hover { +} + +.widget_textads a.style01{color: #428BCA;} +.widget_textads a.style01:hover{border-color: #428BCA;} +.widget_textads a.style01 strong{background-color: #428BCA;} + +.widget_textads a.style02{color: #FF5E52;} +.widget_textads a.style02:hover{border-color: #FF5E52;} +.widget_textads a.style02 strong{background-color: #FF5E52;} + +.widget_textads a.style03{color: #5CB85C;} +.widget_textads a.style03:hover{border-color: #5CB85C} +.widget_textads a.style03 strong{background-color: #5CB85C;} + +.widget_textads a.style04{color: #C35BFF;} +.widget_textads a.style04:hover{border-color: #C35BFF;} +.widget_textads a.style04 strong{background-color: #C35BFF;} + +.widget_textads a.style05{color: #61B3E6;} +.widget_textads a.style05:hover{border-color: #61B3E6;} +.widget_textads a.style05 strong{background-color: #61B3E6;} + + +/* + * footer + * ==================================================== +*/ +.footer{clear:both;color:#aaa;position:relative;z-index:1;margin-left: 215px;margin-right: 20px;padding: 20px 0 30px;border-top: 2px solid #eee;font-size: 12px;} +.footer a{color:#aaa;} +.footer a:hover{color: #999;} + + +/* + * rollto + * ==================================================== +*/ +.rollto{position:fixed;right:20px;bottom:20px;z-index:999;display: none;} +.rollto a{overflow: hidden;display: block;width: 50px;height: 50px;background: url("images/backtop.png") no-repeat 0 0;text-indent: -999px;} +.rollto a:hover{background-position:0 -52px;opacity:1;filter:alpha(opacity=100)} + + +/* + * ads your + * ==================================================== +*/ +.ads-your{display:block;background-color:#fbfbfb;border:2px dashed #bbb;text-align:center;color:#aaa;line-height:20px;font-size:22px} +.ads-your:hover{border-color:#aaa;color:#888} +.ads-your:active{border-color:#FF5E52;color:#FF5E52} + +.ads, .zzgg{overflow:hidden;clear:both;text-align: center;} +.ads-content, .zzgg{margin-top: -5px; } + +.banner-post{padding-top:10px;} +.banner-navbar,.banner-site{margin-bottom:10px;background: none;} +.banner-sticky{margin-bottom:1px;} +.banner-contenttop{margin-bottom:1px;} +.ads img{max-width: 100%} + +.article-author{position:relative;padding:20px 0;} + + +/* + * comment + * ==================================================== +*/ +#respond,#postcomments{position:relative;background-color:#fff} +#respond .base-tit{display:none} +.comment #respond{padding: 10px 0 10px 36px;} +.comment #commentform{margin-bottom: 0;} +.commentnew{} +.commentnew .c-main{margin-bottom:5px} +.comment{padding:10px 0 10px 0} +.commentlist{padding:0;list-style: none;margin: 0;} +.c-avatar{width:25px;height:25px;background-color:#FFF;float:left;display:inline;position:relative} +.c-avatar .avatar{display:block;border-radius: 50%;width:25px;height:25px;} +.c-main{margin-left: 35px;color: #888;line-height: 25px;position: relative;padding-right: 100px;} +.c-main p{margin-bottom:0} +.c-meta{color:#bbb;font-size:12px;} +.c-author{margin-right:10px} +.c-author .url{color: #60C4FD;} +.c-author .url:hover{color: #1FAEFF;text-decoration: underline;} +.c-time{position: absolute;top:1px;right: 0;font-size: 12px;color: #bbb;} +.comment-reply-link{position: absolute;top:1px;right: 0;font-size: 12px;color: #bbb;display: none;} +.comment-reply-link:hover{} +.comment:hover > .c-main > .c-time{display: none;} +.comment:hover > .c-main > .comment-reply-link{display: block;} +.comment pre{margin:3px 0 5px;padding:7px 10px;border-radius:1px} +.depth-1{border-bottom:#f2f2f2 1px solid} +.depth-1.odd{background-color:#fefefe} +.depth-2{margin-right:48px} +.depth-2,.depth-4,.depth-6,.depth-8{background-color:#fdfdfd} +.depth-3,.depth-5,.depth-7,.depth-9{background-color:#fff} +.comment .children{list-style: none;padding: 0;margin-bottom: -10px;} + +.comment .children .comment{padding:10px 0;margin:10px 0 0 36px;border-top: 1px solid #F2F2F2;} +.comment .children .c-main p{font-size:12px;margin-right:0} +.comment .children .c-meta{padding-top:1px} +.c-floor{float:right;font-size:18px;color:#dddddd} +.comment:hover .c-floor{color:#999999} +.c-approved{border-radius:2px;font-size: 12px;background-color:#EEEEEE;color:#999;display:inline-block;padding:1px 5px 0;margin-top:4px;line-height: 20px;margin-left: 5px;} +.wp-smiley{margin-bottom:2px} +#comments{margin: 10px 0;} +#comments b{font-weight:normal;color: #FF5E52;} +#comments .pull-right{font-size: 12px;position: relative;top: 5px;} +#commentform{margin-bottom:20px;padding-left: 60px;} +.comt-title{width: 50px;float: left;margin-left: -60px;} + + + +.comt-count{float:right;color:#999;margin-bottom:5px} +.comt{position:relative} +.comt-avatar{height:50px;width:50px} +.comt-avatar img{border-radius:2px;width: 50px;height: 50px;} +.comt-author{font-size:12px;color:#999;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;text-align: center;} + +.comt-box{border: 2px solid #CCD4D9;border-radius: 2px;padding: 4px;} +.comt-ctrl{position:relative;height:34px;background-color: #FAFAFA;border-top: 1px solid #E6EAED;margin:0 -4px -4px -4px;} +#submit{position: absolute;right:-2px;bottom:-2px;background: #FF655A;border: none;border-right: 2px solid #FF5E52;border-bottom: 2px solid #FF5E52;padding: 0px 20px;height: 36px;color: #fff;outline: 0;border-radius: 0 0 2px 0} + +#comment{width: 100%;resize: none; +overflow-x: hidden; +overflow-y: auto; +border: none; +line-height: 22px; +font-size: 14px; +outline: 0; +margin-bottom: 2px; +height: 68px; +} + +.hide{display: none;} + +.comt-tips{text-align: right;margin-right: 110px;line-height: 32px;font-size: 12px;color: #999;} +.comt-error{color:#D9534F;} + +.comt-comterinfo{padding:20px 0 0;color:#444;text-align: center;} +.comt-comterinfo ul{padding: 0;margin: 0 auto;width:320px;list-style: none;text-align: left;height: 80px;overflow: hidden;} +.comt-comterinfo li{margin-bottom:10px} +.comt-comterinfo input{margin-right:10px;position:relative;*bottom:-3px;border: 2px solid #CCD4D9;border-radius: 2px;height:34px;padding: 3px 5px;outline: none;width: 220px;box-shadow: none} +#cancel-comment-reply-link{display:none;font-size:12px;text-align: center;margin-top: 7px;color: #999;} +#cancel-comment-reply-link:hover{color: #FF5E52;} +.comment #cancel-comment-reply-link{display:block} + +.comment-signarea{background-color: #F6F6F6;border-radius: 7px;padding: 30px 20px;text-align: center;margin-bottom: 20px;} +.comment-signarea h3{margin: 0;padding: 0;margin-bottom: 15px;font-weight: normal;font-size: 18px;} +.comment-signarea .auth{margin: 0 5px;} + +.auth{background: url("images/oauth-24.png") no-repeat 0 0;line-height: 100px;height: 24px;overflow: hidden;display: inline-block;width: 126px;opacity: .72} +.auth-qq{} +.auth-weibo{background-position: 0 -34px;} +.auth:hover{opacity: 1} + + +.article-social{padding: 20px 0;text-align: center;} +.article-social .action{margin: 0 5px;} +.action{position: relative;padding: 12px 25px;display: inline-block;border-radius: 2px;color: #fff;box-shadow: 0 0 2px rgba(0,0,0,.12);} +.action:hover{color: #fff;} +.action i{margin-right: 5px;top: 2px;width: 14px;display: inline-block;} +/*.action.actived{border-color: #FF9790;color: #FF5E52;background-color: #FCEAE8;}*/ +.action .action-popover {position: absolute;width: 198px;padding: 5px 0 2px;top: -45px;left: 50%;margin-left: -98px;display: none;height: 46px;} +.action .popover-content {padding: 7px 3px 5px 8px;} +.action:hover .action-popover{display: block;} +.action .popover{display: block;border-radius: 4px;} + +.action-like{background-color: #FF5E52;opacity: 0.90;filter:alpha(opacity=90);} +.action-like.actived, .action-like:hover{opacity: 1;filter:alpha(opacity=100);} + +.action-comment{background-color: #60C4FD;opacity: .9} +.action-comment.actived, .action-comment:hover{opacity: 1} + +.action-share{color: #666;position: relative;text-align: center;margin-bottom: 15px;} +.bdsharebuttonbox.bdshare-button-style0-24 a{float: none;display: inline-block;margin: 0 2px;position: relative;top: 6px;} +.bdsharebuttonbox.bdshare-button-style0-24 .bds_count{margin: 0;color: #666;top: 2px} +.bdsharebuttonbox.bdshare-button-style0-24 a.bds_more{top: -1px;color: #666;font-size: 14px;} + +.action:active{box-shadow: inset 0 2px 2px rgba(0,0,0,0.10)} + +.most-comment-posts ul{margin: 0 0 20px;padding: 20px 0 0;list-style: none;overflow: hidden;} +.most-comment-posts li{overflow: hidden;clear: both;} +.most-comment-posts li > a span{color: #FF5E52;} +.most-comment-posts p{float: right;font-size: 12px;} +.most-comment-posts .label{margin-right: 8px;padding: 2px 7px;top: -1px;} +.label-1{background-color: #FD8C84;} +.label-2{background-color: #7FD75A;} +.label-3{background-color: #60C4FD;} +.most-comment-posts .post-like{width: 80px;text-align: right;display: inline-block;margin-left: 5px;} + +.page-likes{overflow: hidden;} +.likepage{margin: 0 -25px 0 0;padding: 5px 0 20px;list-style: none;overflow: hidden;} +.likepage li{width: 240px;margin: 15px 25px 10px 0;float: left;position: relative;height: 180px;} +.likepage li img{width: 240px;height: 180px;display: block;} +.likepage li:hover img{opacity: .8;} +.likepage a{position: relative;display: block;} +.likepage h2{position: absolute;bottom: 0;left: 0;right:0;margin:0;padding:0 10px;background-color: rgba(0,0,0,.8);color: #fff;font-size: 14px;font-weight: normal;height: 29px;line-height: 29px;overflow: hidden;} +.likepage .post-like{position:absolute;top: 10px;right: 10px;font-size: 12px;background-color: rgba(0,0,0,.7);border-radius: 20px;padding: 2px 6px 1px;color: #fff;z-index: 2} +.likepage .post-like.actived{color: #fff;background-color: rgba(255,94,82,.8);} +.likepage .img-count{position: absolute;bottom: 29px;left: 0;font-size: 12px;color: #fff;background-color: rgba(0,0,0,.8);padding: 3px 10px 1px} +.likepage .img-count span{margin-right: 5px;} + +.plinks{overflow: hidden;list-style: none;margin: 0;padding: 0;} +.plinks ul{list-style: none;overflow: hidden;margin: 0;padding: 0;} +.linkcat{margin-bottom: 40px;} +.linkcat h2{font-size: 18px;color: #FF5E52;border-bottom: 2px solid #eee;padding-bottom: 7px;} +.linkcat li{float: left;width: 25%;height: 30px;line-height: 30px;overflow: hidden;} + + +.archives .item{padding:20px 0 12px 120px;overflow: hidden;border-bottom: 1px solid #eee;} +.archives h3{font-size: 18px;margin:4px 0 0 -120px;float: left;} +.archives-list{list-style: none;} +.archives-list li{padding: 3px 0;overflow: hidden;} +.archives-list time{margin-right: 5px;color: #999;} +.archives-list .text-muted{float: right;font-size: 12px;} +.archives .item:hover h3{color: #FF5E52;} + +.readers{overflow: hidden;padding: 20px 0;} +.readers a{width: 36px;height: 36px;float: left;margin: 0 5px 5px 0} +.readers .avatar{width: 36px;height: 36px;display: block;} + +.tagslist{overflow: hidden;list-style: none;padding: 20px 0;margin: 0} +.tagslist li{float: left;width: 25%;font-size: 12px;height: 106px;overflow: hidden;color: #999;border-bottom: 1px solid #eee;padding: 10px 0} +.tagslist .tagname{display: inline-block;margin-right: 5px;background-color: #e6e6e6;color: #666;padding: 2px 7px;margin-bottom: 4px;} +.tagslist strong{font-weight: normal;color: #999;} +.tagslist a{color: #666;margin-right: 10px;display: inline-block;} +.tagslist .tagname:hover{color: #fff;background-color: #FF5E52;} + +.no-sidebar{margin-right: 0;} + +.affix {position: fixed;} + +.ui-c2 .content{margin-right: 0} + +.e404{text-align:center;padding:40px 0 60px;font-size:16px;} +.e404 img{max-width: 100%} +.e404 h1{font-size:60px;margin:50px 0 20px;} + +.user-signin{text-align: center;line-height: 22px;font-size: 12px;margin-top: 20px;} +.user-signin a{color: #E5A319;} +.user-signin a:hover{color: #666;text-decoration: underline;} + + + +.carousel { + position: relative; + margin-bottom: 20px; + background-color: #fff; +} +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden; +} +.carousel-inner > .item { + position: relative; + display: none; + text-align: center; + -webkit-transition: .6s ease-in-out left; + -o-transition: .6s ease-in-out left; + transition: .6s ease-in-out left; +} +.carousel-inner > .item > img, +.carousel-inner > .item > a > img { + line-height: 1; +} +.carousel-inner > .active, +.carousel-inner > .next, +.carousel-inner > .prev { + display: block; +} +.carousel-inner > .active { + left: 0; +} +.carousel-inner > .next, +.carousel-inner > .prev { + position: absolute; + top: 0; + width: 100%; +} +.carousel-inner > .next { + left: 100%; +} +.carousel-inner > .prev { + left: -100%; +} +.carousel-inner > .next.left, +.carousel-inner > .prev.right { + left: 0; +} +.carousel-inner > .active.left { + left: -100%; +} +.carousel-inner > .active.right { + left: 100%; +} +.carousel-control { + position: absolute; + top: 50%; + left: 0; + width: 50px; + height: 60px; + margin-top: -30px; + font-size: 20px; + color: #fff; + text-align: center; + filter: alpha(opacity=35); + opacity: .35; + background-color: #000; + display: none; +} +.carousel:hover .carousel-control{display: block;} +.carousel-control.left { + +} +.carousel-control.right { + right: 0; + left: auto; +} +.carousel-control:hover, +.carousel-control:focus { + color: #fff; + text-decoration: none; + filter: alpha(opacity=70); + outline: 0; + opacity: .7; +} +.carousel-control .icon-prev, +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-left, +.carousel-control .glyphicon-chevron-right { + position: absolute; + top: 50%; + margin-top: -10px; + z-index: 5; + display: inline-block; +} +.carousel-control .icon-prev, +.carousel-control .glyphicon-chevron-left { + left: 50%; + margin-left: -10px; +} +.carousel-control .icon-next, +.carousel-control .glyphicon-chevron-right { + right: 50%; + margin-right: -10px; +} +.carousel-control .icon-prev, +.carousel-control .icon-next { + width: 20px; + height: 20px; + margin-top: -10px; + font-family: serif; +} +.carousel-control .icon-prev:before { + content: '\2039'; +} +.carousel-control .icon-next:before { + content: '\203a'; +} +.carousel-indicators { + position: absolute; + margin-bottom: 0; + bottom: 0; + right: 0; + z-index: 15; + width: 110px; + height: 40px; + padding: 10px 10px 0 0; + text-align: right; + list-style: none; +} +.carousel-indicators li { + display: inline-block; + width: 9px; + height: 9px; + margin: 0 2px; + text-indent: -999px; + cursor: pointer; + background-color: #000 \9; + background-color: rgba(0, 0, 0, 0); + border: 1px solid #fff; + border-radius: 9px; +} +.carousel-indicators .active { + width: 9px; + height: 9px; + background-color: #fff; +} +.carousel-caption { + position: absolute; + right: 0; + bottom: 0; + left: 0; + z-index: 10; + text-align: left; + padding: 10px; + margin-right: 100px; + overflow:hidden; text-overflow:ellipsis; white-space:nowrap; + color: #fff; + font-size: 16px; +} +.carousel-bg{ + position: absolute; + right: 0; + bottom: 0; + left: 0; + height: 40px; + z-index: 9;background-color: #000;filter: alpha(opacity=70); + opacity: .7;} +.carousel-caption .btn { + text-shadow: none; +} + + + + +body .bd_weixin_popup{padding: 30px 20px;width: 420px;} +body .bd_weixin_popup .bd_weixin_popup_main{padding: 15px 0} +body .bd_weixin_popup .bd_weixin_popup_foot{display: none;} + + +.page-template-pagehasmenu section.container{padding-left: 215px;background: transparent;border-bottom: none;} +.page-template-pagehasmenu section.container .content{background-color: #fff;border-bottom: 2px solid #ddd;border-radius: 5px;} +.ui-navtop.page-template-pagehasmenu section.container{border-bottom: none;} + +.pageside{position: absolute;top: 0;left: 0;width: 200px;} + +.pagemenu{list-style: none;margin: 0 0 15px;padding: 0; border: 1px solid #eaeaea;background-color: #fff;border-radius: 4px;overflow: hidden;} +.pagemenu li a{display: block;padding: 12px 20px;font-size: 16px;color: #999;border-bottom: 1px solid #eee;background-color: #fff;} +.pagemenu li a:hover{color: #666;} +.pagemenu li.active a{color: #fff;background-color: #45B6F7;margin: 0 -1px;} +.pagemenu li:last-child a{border-bottom: none;} +.pagemenu li .glyphicon {font-size: 14px;} + +.pagemenu h4{margin: 0;} +.pagemenu h4 a{color: #666;background-color: #F9F9F9;padding-top: 15px;cursor: default;border-bottom-color: #e6e6e6;} + + + + + + +.excerpt_thumb_left .excerpt-one .focus{float: left;margin-top: 10px;} +.excerpt_thumb_left .excerpt-one .note{margin-left: 35%;margin-right: 0;padding-right: 0;padding-left: 15px;} +.excerpt_thumb_left .excerpt-one .views{margin-left: 25.3%;margin-right: 0;padding-right: 0;padding-left: 15px;} + + + + +/* + * nav top + * ==================================================== +*/ +.ui-navtop{margin-top: 93px;} +.ui-navtop .header{bottom:auto;width: 100%;background-color: #444;box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.08)} +.ui-navtop .logo{float: left;width: 160px;} +/*.ui-navtop .logo a{height: 78px;background-position: 50% 50%;}*/ +.ui-navtop .logo a{height: 48px;width:150px; background-color: #444;} +.ui-navtop .nav{float: left;border-bottom: none;} +.ui-navtop .nav ul{top: 100%;left: 0;border: 2px solid #444;width: 100%;text-align: -webkit-center;} +.ui-navtop .nav ul ul{left: 100%;top:-7px;border-left: none;} +.ui-navtop .nav > li{float: left;text-align: center; } +.ui-navtop .nav .glyphicon {margin-right: 0;} +.ui-navtop .feeds{position: absolute;top: 32px;right: 55px;padding: 0;border-bottom: none;margin-bottom: 0;background-color: transparent;} +.ui-navtop .feed{width: auto;margin-left: 5px;} +.ui-navtop .feed i{margin-right: 3px;width: 8px;height: 8px;border-radius: 50%;top: 0px;} +.ui-navtop .slinks{position: absolute;top:22px;right:60px;margin: 0;line-height: 12px;height: 12px;overflow: hidden;} +.ui-navtop .user-welcome{position: absolute;top:1px;right:0;margin: 0;padding: 0;box-shadow: none;background-color: transparent;border: 1px solid #ddd;padding: 1px;border-radius: 8px;} +.ui-navtop .user-welcome .avatar{float: none;margin-left: 0;top: 0} +.ui-navtop .user-welcome strong{display: none;} +.ui-navtop .user-welcome span{display: none;} +.ui-navtop .user-logout{/* display: none; */} +.ui-navtop .content{margin-left: 0;padding: 0px;margin-right: 315px;/* background-color: #fff; */ */} +.ui-navtop .content.no-sidebar{margin-right: 0;} +.ui-navtop.error404 .content{margin-right: 0;} +.ui-navtop section.container{margin-bottom: 15px;} +.ui-navtop .footer{background-color: #444;margin: 0;text-align: center;padding: 10px;} +.ui-navtop .sidebar{margin-left: -300px;width: 300px;} +.ui-navtop .widget.affix{width: 360px;} +.ui-navtop .focusmo a{height: 153px;} +.ui-navtop .focusmo li.large a{height: 316px;} +.ui-navtop .focus .thumbnail .thumb{height: 163px;} +.ui-navtop .thumbnail .thumb{max-height: 163px;} +.ui-navtop .excerpt .note{margin-top: 15px;margin-bottom: 15px;} +.ui-navtop .article-header{text-align: center;border-bottom-width: 1px;} +.ui-navtop .article-meta li{float: none;display: inline-block;} +.ui-navtop .relates a img{height: 100%;} +.ui-navtop .user-signin{position: absolute;top:15px;right: 0;margin-top: 0} +.ui-navtop .widget_postlist .items-02 .thumb{height: 130px;} +.ui-navtop .header .search-form{margin-left: 30px;width: 220px;float: left;} + + + +.uimo .container{background-color: transparent;max-width: 1320px;} + +.ui-navtop.uimo .container{max-width: 1280px;} +.ui-navtop.uimo .header .container{padding: 0 20px;} +.ui-navtop.uimo .content{padding-top: 5px;} +.ui-navtop.uimo .sidebar{padding-top: 5px;} + +.uimo .pagination{background-color: transparent;} +.uimo .header{background-color: #fff;} +.uimo .title{background-color: #fff;border-bottom: none;padding: 20px 20px 0;} +.uimo .title strong{bottom: 0;} +.uimo .most-comment-posts ul{background-color: #fff;padding: 15px 20px;} +.uimo .sticky ul{background-color: #fff;padding: 15px 20px;} +.uimo .excerpt{background-color: #fff;padding: 20px;border-bottom: none;margin-bottom: 1px;} +.uimo .widget{background-color: #fff;padding: 15px 20px;} +.uimo .widget .title{padding: 0;} +.uimo .widget_textads{padding: 0;} +.uimo .widget_textads a{border-color: #fff;} +.uimo .widget_ads{padding: 0;} + +.uimo .article-header{background-color: #fff;padding: 20px 30px;margin-bottom: 1px;border-bottom: none;} +.uimo .article-content{background-color: #fff;padding: 20px 30px;} +.uimo .article-social{background-color: #fff;padding: 20px 30px 40px 30px;} +.uimo .action-share{background-color: #fff;padding: 0 30px;margin-bottom: 0;} +.uimo .article-tags{background-color: #fff;padding: 20px 30px;margin-bottom: 0;} +.uimo .article-nav{background-color: #fff;padding: 20px 30px 30px 30px;margin-bottom: 20px;} +.uimo .relates ul{background-color: #fff;padding: 20px 20px 10px;margin-bottom: 20px;} + +.uimo #comments{margin-bottom: 0;} +.uimo #commentform{margin-bottom: 0;} +.uimo #respond, .uimo #postcomments{padding: 20px 20px 20px;} + +.uimo .readers{background-color: #fff;padding: 0 20px 20px;margin-bottom: 20px;} +.uimo .plinks{background-color: #fff;padding: 0 20px 0;margin-bottom: 20px;} +.uimo .tagslist{background-color: #fff;padding: 20px 20px;} +.uimo .likepage{background-color: #fff;padding: 20px 20px;margin-bottom: 20px;} +.uimo .likepage li{margin: 15px 20px 10px 0;} + + +@media (max-width:1200px){ + .ui-navtop.uimo .content{padding-top: 20px;} + .ui-navtop.uimo .sidebar{padding-top: 20px;} +} +@media (max-width:480px){ + .uimo .container{background-color: #fff;} + .uimo .excerpt{padding: 10px 0;border-bottom: 1px solid #eee;} + .uimo .title{padding: 0;border-bottom: 2px solid #eee;} + .uimo .title strong{bottom: -2px;} + + .uimo .article-header{padding: 0 0 10px;margin-bottom: 10px;border-bottom: 1px solid #eee;} + .uimo .article-content{padding: 0;} + .uimo .relates ul{padding: 10px 0;} + .uimo #respond, .uimo #postcomments{padding: 10px 0;} + + .uimo .readers{padding: 10px 0} + .uimo .plinks{padding: 0} + .uimo .tagslist{padding: 0} + .uimo .likepage{padding: 0} +} + + + + +.widget_tags_inner a, +.excerpt h2 a, +.action, +.likepage li img, +.likepage h2, +.focusmo a:hover h4, +.likepage .img-count, +.thumb-span::before, .thumb-span::after, +.auth{-webkit-transition:all linear .218s;-moz-transition:all linear .218s;transition:all linear .218s} + + +.navmore{display: none;} +.search_not .header .search-form{display: none;} +.m-search{display: none;} + +@-ms-viewport{width:device-width} +@media (max-width:1200px){ + .E_FS {display: none;} + .ui-navtop{margin-top: 78px;} + .ui-navtop section.container{margin-bottom: 0;border-bottom: none;border-radius: 0} + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 116px} +} +@media (max-width:1100px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 100px} +} +@media (max-width:1024px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop .focus .thumbnail .thumb{height: 140px} + .ui-navtop /*.sticky img,*/ .ui-navtop .relates a img{height: 160px} + .sidebar{display: none;} + .content, .ui-navtop .content{margin-right: 0} + + .tagslist{padding: 10px 0;} + .tagslist li{width: 50%;} + + + .ui-navtop .feeds{display: none;} + .ui-navtop .slinks{display: none;} + .ui-navtop .user-welcome{display: none;} + .ui-navtop .user-signin{display: none;} +} +@media (max-width:879px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 120px} + .content{margin-left: 160px;} + .header{width: 160px} + .logo{height:101px;} + .logo a{height:101px;} + + .ui-navtop .logo{height: 78px;} + + /*.ui-navtop{margin-top: 0;}*/ + /* .ui-navtop .logo{height:78px;} + .ui-navtop .logo a{height:78px;background-size: auto;background-position:50% 50%;} */ + + .nav li a{padding:10px 0 10px 15px;} + .feeds{padding-left:4px;} + .feeds a{margin-right:2px;} + .footer{margin-left: 185px;} + .comt-comterinfo h4{} + .post-tags{display: none;} + .excerpt .post-linkto{display: none;} + .header .search-form{margin-left: 5px;width: 150px;} +} +@media (max-width:820px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img, + .ui-navtop .focusmo a{height: 130px} + .ui-navtop .focusmo li.large a{height: 270px;} +} +@media (max-width:767px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 106px} + .content{padding: 15px 20px;} + .pagination-multi ul > li{display: none;} + .pagination-multi .prev-page, .pagination-multi .next-page{display: inline-block;} + .pagination-multi ul > li > a{padding: 8px 20px;} +} +@media (max-width:1200px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img, + .ui-navtop .focusmo a{height: 120px} + .ui-navtop .focusmo li.large a{height: 250px;} + + .header .search-form, .ui-navtop .header .search-form{display: none;float: none;width: 94%;margin: 0 3% 10px;overflow: hidden;} + + .ui-navtop.uimo .header .container{padding: 0;} + .ui-navtop .header{box-shadow: none} + + .breadcrumbs{display: none;} + + .header{position: relative;width:auto;} + + .ui-navtop .logo, .logo{height:48px;line-height: 43px;text-align:center;font-size: 18px;overflow: hidden;} + .logo a{display:inline-block;height: auto;} + + + .nav{height: 42px;margin-bottom: 0;/* background-color: #9E9E9E; */font-size: 14px;overflow: hidden;border-bottom: none;} + .nav::after{height: 1px;content: '';position: absolute;left: 0;bottom: 0;right: 0;background-color: #eee;overflow: hidden;} + .nav li{display: inline-block;position: relative;z-index: 2;} + .nav li a{padding: 0 20px;line-height: 42px;/* font-weight: bold; */} + .nav li ul{display: none;} + .nav li:hover > ul{display: none;} + .nav .glyphicon{margin-right: 2px;display: none;} + + .nav li.current-menu-item > a, .nav li.current-menu-parent > a, .nav li.current_page_item > a, .nav li.current-post-ancestor > a{border-bottom: 2px solid #FF5E52;height: 42px;} + + .nav li.navmore{width: 50px;height: 42px;position: absolute;right: 0;top: 0;} + .nav li.navmore::before{content:'';position: absolute;top: 19px;right: 20px;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 6px solid #999;} + .nav li.navmore::after{content:'';position: absolute;top: 18px;right: 20px;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 6px solid #fff;} + + .navshows{/*overflow: hidden;position: fixed;*/top: 0;left: 0;right: 0;bottom: 0;height: 100%;} + /*.ui-navtop.navshows .nav, .navshows .nav{position:fixed;left:0;top:42px;right:0;bottom:0;height:100%;padding:0 40px 42px 20px;overflow-y:auto;}*/ + .ui-navtop.navshows .nav, .navshows .nav{/*position:fixed;top:48px;*/right:0;bottom:0;height: 25%;padding:0 40px 42px 20px;overflow-y:auto;width: 100%;} + .ui-navtop.navshows .nav > li, .navshows .nav > li{display: inline-block;padding: 5px 10px;/* border-bottom: 1px solid #e6a519; */float: none;text-align: left;} + .ui-navtop.navshows .nav li a, .navshows .nav li a{font-size:14px;padding:0;line-height:30px;/* background-color: #e6a519; */color: #fff;} + .ui-navtop.navshows .nav li ul, .navshows .nav li ul{display:block;position:relative;left:0;border:none;min-width: 0;/* background-color: #E6A519; */} + .ui-navtop.navshows .nav li ul li, .navshows .nav li ul li{margin:2px 0 2px 10px;display: block;float: left;} + .ui-navtop.navshows .nav li ul a, .navshows .nav li ul a{padding:0;font-weight:normal;} + + .ui-navtop.navshows .nav li.current-menu-item > a, .navshows .nav li.current-menu-item > a, + .ui-navtop.navshows .nav li.current-menu-parent > a, .navshows .nav li.current-menu-parent > a, + .ui-navtop.navshows .nav li.current_page_item > a, .navshows .nav li.current_page_item > a, + .ui-navtop.navshows .nav li.current-post-ancestor > a, .navshows .nav li.current-post-ancestor > a{height: auto;border-bottom: none;} + + .navshows .nav li.navmore{border-bottom: none;} + + .feeds{display: none;} + .slinks{display: none;} + + .content{margin-left:0;} + .footer{margin-left: 0;margin-right: 0;padding-bottom: 20px;text-align: center;background-color: #444;} + + .ui-navtop{margin-top: 0;} + .ui-navtop .logo{float: none;width: auto} + .ui-navtop .nav .glyphicon{display: none;} + .ui-navtop .nav{float: none;margin-top: 0;border-top: 2px solid #E5A319;} + /* .ui-navtop .header{box-shadow: none} + .ui-navtop .logo{width: auto;float: none;height: 72px;} + .ui-navtop .logo a{height: 72px;} + .ui-navtop .nav{float: none;margin-top: 0;background-color: #eee;} + .ui-navtop .nav li{float: none;} */ + + .user-welcome, .user-logout{display: none;} + + .linkcat h2{font-size: 14px;font-weight: bold;} + + .archives .item{padding-left: 0;} + .archives h3{margin-left: 0;float: none;margin-bottom: 10px;} + + .m-search{display: block;position: absolute;right: 0;top: 0;padding: 0 20px;line-height: 42px;color: #fff;font-size: 14px;font-weight: normal;z-index: 9} +} +@media (max-width:670px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 105px} +} +@media (max-width:640px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 100px} +} +@media (max-width:590px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 90px} +} +@media (max-width:560px){ + + .focusmo, /*.sticky,*/ .user-welcome, .user-logout{display: none;} + + .content, .ui-navtop .content{padding: 1px;/* background-color: #fff; */ */} + + .article-social{padding-top: 5px;} + .action .action-popover{margin-left: -72px;top: -37px;} + .rollto{/*right: -100px;*/opacity:0.5;} + .e404 h1{font-size: 40px;} + + .nav{height: 36px;padding-right: 40px;} + .nav li a{padding: 0px 6px;font-size: 15px;line-height: 36px;color: #FFF;} + .nav li.current-menu-item > a, .nav li.current-menu-parent > a, .nav li.current_page_item > a, .nav li.current-post-ancestor > a{border-bottom: 2px solid #FF5E52;height: 36px;} + + .nav li.navmore{width: 40px;height: 36px;position: absolute;right: 0;top: 0;} + .nav li.navmore::before{content:'';position: absolute;top: 16px;right: 10px;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 6px solid #999;} + .nav li.navmore::after{content:'';position: absolute;top: 15px;right: 10px;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 6px solid #fff;} + + .m-search{padding: 0 10px;} + + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 84px} + + .relates ul{line-height: 16px;} + .relates li{margin-bottom: 10px;} + .relates a{display: inline-block;font-size: 12px;} + } +} +@media (max-width:520px){ + /*.sticky img,*/ .focus .thumbnail .thumb, .relates a img, + .ui-navtop /*.sticky img,*/ .ui-navtop .focus .thumbnail .thumb, .ui-navtop .relates a img{height: 78px} +} +@media (max-width:480px){ + + .relates a img, .ui-navtop .relates a img{height: 70px} + + .article-header{padding-bottom: 8px;display: none;} + + + .focus .thumbnail .thumb, + .ui-navtop .focus .thumbnail .thumb {height: 80px} + + .comt-author{text-align: left;position: relative;top: 6px} + #comments .pull-right{top: 0} + + + .title{line-height: 14px;margin-bottom: 5px; */} + .title strong{padding-bottom: 6px;} + .title .pull-right{margin-top: 2px;line-height: 14px;font-size: 12px;} + /*.post-comments{display: none;}*/ + /*.post-like{display: none;}*/ + .content{padding: 10px 12px 0;} + .excerpt{padding: 12px 0;width: 100%} + .excerpt .note{display: none;} + .excerpt .time{display: none;} + .excerpt .views{padding-top: 5px;} + .excerpt h2{font-size: 16px;font-weight: bold;} + .excerpt .focus{margin-right: -3px;} + .thumbnail .item{margin-bottom: 3px;} + .thumb-span{margin-right: 3px;} + .excerpt header .label-important{padding: 3px 5px 2px} + .excerpt header small{margin-left: 2px;} + + .excerpt .text-muted a{text-decoration: none;} + + .excerpt-one{min-height: 110px} + .excerpt-one header{margin-right: 35%;margin-bottom: 0;} + .excerpt-one .views{margin-right: 26%;} + .excerpt-one .focus{float: none;position: absolute;right: 0;top: 12px;margin-top: 0;} + .article-title{font-size: 16px;font-weight: bold;margin-bottom: 5px;} + .article-content{line-height: 22px;} + + .excerpt_thumb_left .excerpt-one .focus{margin-top: 4px;} + .excerpt_thumb_left .excerpt-one .views{margin-left: 0;padding-left: 0;} + + + #commentform{padding-left: 0;} + #respond{overflow: hidden;} + .comt-title{width: auto;float: none;margin-left: 0;overflow: hidden;margin-bottom: 10px;display: none;} + .comt-avatar{width: 36px;height: 36px;float: left;margin-right: 5px;} + .comt-avatar .avatar{width: 36px;height: 36px;border-radius: 50%;} + .comt-comterinfo{width: 100%;} + .comt-comterinfo .text-muted{display: none;} + .comt-comterinfo input{width: 94%;margin-right: 0;} + .comment:hover > .c-main > .comment-reply-link{display: inline-block;} + .comment-reply-link, .c-time{position: relative;top: 0;display: inline-block;margin-left: 10px;} + .c-main{padding-right: 0;} + .comment .children .comment{margin-left: 0;} + .comment.depth-1 > .children > .comment{margin-left: 36px;} + .user-welcome, .user-signin, .article-nav{display: none;} + + .e404{padding: 20px 0;} + .e404 h1{font-size: 32px;} + #slider{display: none;} + #slider{margin: 0 0 10px;} + + .focusslide_s_m #slider{display: block;} + + + .carousel-indicators li, .carousel-indicators .active{width: 6px;height: 6px;} + + .carousel-indicators{height: 24px;line-height: 22px;padding-top: 0;} + .carousel-bg{height: 24px;} + .carousel-caption{font-size: 12px;line-height: 24px;padding: 0 10px;} + + .carousel:hover .carousel-control{display: none;} + + + +} +@media (max-width:450px){ + .focus .thumbnail .thumb, + .ui-navtop .focus .thumbnail .thumb {height: 75px} +} +@media (max-width:420px){ + .focus .thumbnail .thumb, + .ui-navtop .focus .thumbnail .thumb {height: 70px} + + .relates a img, .ui-navtop .relates a img{/*height: 44px*/} +} +@media (max-width:380px){ + .focus .thumbnail .thumb, + .ui-navtop .focus .thumbnail .thumb {height: 60px} + .relates a img, .ui-navtop .relates a img{/*height: 38px*/} + .content{padding: 10px 10px 0;} + .excerpt{padding: 8px 0} + .excerpt header{margin-bottom: 5px;} + .excerpt header .label-important{display: none;} + .excerpt h2{font-size: 14px;line-height: 18px;} + .excerpt .focus{margin-right: -2px;margin-top: 4px;} + .thumbnail .item{margin-bottom: 2px;} + .thumb-span{margin-right: 2px;} + .excerpt header small{display: none;} + + .excerpt-one{min-height: 90px} + .excerpt-one h2{height: 40px;overflow: hidden;display: block;margin-top: 4px;} + .excerpt-one .views{position: absolute;bottom: 10px;left: 0;right: 25%;margin-right: 0;} +} + +@media (max-width:320px){ + .focus .thumbnail .thumb, + .ui-navtop .focus .thumbnail .thumb{height: 54px} +} +/* */ +.u-movie{ + width: 16.6666%; + float: left; + padding: 4px; + margin-top: 5px; + position: relative; +} +.u-movie:hover{ + box-shadow:0px 2px 2px #CCC; + outline:1px solid #DDD; +} +.u-movie h2{ + font-weight: bolder; + font-size: 12px; + height: 20px; + line-height: 20px; + overflow: hidden; + margin:5px 0 0 0; + color: #323232; + text-align: center; +} +.u-movie .meta{ + color:#666666; + height: 20px; + overflow: hidden; + font-size: 12px; + text-align:center; +} +.u-movie .tags a{ + /*display: inline-block;*/ + background-color: #d8d8d8; + padding:0px 3px; + margin:2px; + color:#666666; +} +.u-movie .post-like{ + background-color: rgba(0, 0, 0, 0.7); + border-radius: 20px; + color: #fff; + font-size: 12px; + padding: 2px 6px 1px; + position: absolute; + right: 10px; + top: 10px; + z-index: 2; +} +.u-movie img:hover{ + background:#000; + opacity:.5; + filter:alpha(opacity=10); +} +.pingfen { + position: absolute; + top: 4px; + right: 2px; +} +.pingfen span { + display: inline-block; + background-color: #bb9b6a; + border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; + padding: 0 5px; + opacity: .95; + margin-right: 5px; + font-size: 12px; + text-align: center; + color: #fff; +} +.zhuangtai { + position: absolute; + bottom: 49px; +} +.zhuangtai span { + display: inline-block; + background-color: #444444; + border-top-right-radius: 5px; + padding: 0 5px; + opacity: .95; + font-size: 12px; + text-align: center; + color: #fff; +} +/* new */ +.u-movie--sm{ + width:25%; +} +.m-sticky .title, .m-most-comment-posts .title{ + margin-bottom: 10px; + +} +.m-movies{ + margin: 5px 0; + background-color: #fff; + float: left; + padding: 0 2px; + width: 100%; +} +.m-movies h1 { + padding-top: 8px; +} +.m-sticky ul, .m-most-comment-posts ul{ + list-style: none; + padding-left: 0; + margin-bottom: 0; +} +.relate { +/*display: inline-block;*/ +padding-bottom: 20px; +} +/*.relate article.u-movie { +width: 12.5%; +padding: 2px; +}*/ +.relate .zhuangtai { + bottom: 29px; +} +@media (max-width:520px){ +/*.relate article.u-movie {width: 24%;margin: 0.05rem;} +.relate .u-movie .tags a { +margin: 2px; +}*/.relate .zhuangtai { + bottom: 27px; +} + .u-movie{ + width: 33%; + padding: 2px 4px; + margin: 0.01rem; + margin-bottom: 6px; + } + .u-movie--sm{ + width:50%; + } + .sticky li{ + width:33.333%; + } + .pingfen { + top: 2px; + } + .zhuangtai { + bottom: 47px; + } + .u-movie h2 a { + font-size: 12px; +} +} +/* new */ +.i-pcmob{display: inline;} +.player{height:360px;width:100%;background-color: #000;} +.player div { + /*width: 100%; + height: 100%;*/ +} +.vtitle { + display: block; + font-size: 26px; + padding: 5px 0; +} +@media (max-width: 560px){ + .i-pcmob{display:none;} + .player{height:200px;width:100%;overflow: hidden;} + .poster {width: 50%;} + .vtitle {font-size: 18px;} +} +.playlist{border: 0px; vertical-align: top; margin: 0.1em 0px 0.1em; padding: 0px;border-left-width: 1px; border-left-style: solid; font-size: 1.2em; font-family: inherit; font-weight: inherit; text-decoration: inherit; color: #444444; border-color: #444444; box-sizing: border-box;} +.playlist-title{height: 1.5em; border-left-width: 5px; border-left-style: solid; line-height: 1.5em; padding-left: 5px; box-sizing: border-box; border-color: #444444; color: inherit;} +.playlist span{font-size: 12px;color: #444444;} +.playlist-s{margin: 2px; font-size: 0.8em; font-family: inherit; font-weight: inherit; text-decoration: inherit; color: rgb(0, 0, 0); box-sizing: border-box;line-height: 15px;text-align: left;font-size: 12px;overflow: hidden;clear: both;padding: 5px 7px;} +.playlist-s a{padding: 8px 5px;display: inline-block;border-radius: 2px;background-color:#444444;text-decoration: none;color: rgb(255, 255, 255);margin-right: 7px;margin-top: 4px;} + +.tips { + margin-bottom: 10px; + font-size: 12px; + background-color: rgba(224, 225, 230, 0.25); + text-align: center; + color: #9E9E9E; +} +.tips p { + padding: 2px; + color: #444444; + text-align: center; + line-height: 16px; + font-size: 12px; +} +.most-comment-posts { + width: 50%; + padding-right: 10px; + float: left; + display: inline; +} +.bestdaily { + height: 226px; + width: 50%; + float: left; + display: inline; +} +.conments { + padding: 10px; + height: 170px; + overflow: hidden; +} +.conments li { + width: 25%; + float: left; + list-style-type: none; + text-align: center; + padding: 10px 5px 0 5px; +} +.conments li :hover{ + box-shadow:0px 2px 2px #CCC; + outline:1px solid #DDD; +} +.bestdaily span { + /*font-size: 10px; + float: right; + background-color: #bb9b6a; + border-top-left-radius: 5px; + border-bottom-right-radius: 5px; + padding: 0 5px; + opacity: .95; + margin-right: 10px; + margin-top: 10px; + color: #fff; + line-height: 23px;*/ +} +.weixin { + background-color: #515151; + text-align: -webkit-center; +} +@media (max-width: 560px){ + .most-comment-posts { + width: 100%; + } + .bestdaily { + display: none; + } +} +.video_box { + height: 330px; + overflow: hidden; + margin-bottom: 10px; +} +.video_img { + float: left; + padding-right: 10px; + height: 330px; + width: 230px; +} +.video_img img { + width: 100%; + min-height: 100%; +} +.video_info { + padding: 3px; + float: left; + width: 40%; + height: 100%; + overflow: auto; +} +.video_tga { + width: 100%; + height: 100%; + padding-left: 10px; + display: table-cell; +} +.video_tga img { + height: 100%; +} +.jianjie { + text-align: left; + display: inline-block; +} +.jianjie span { + display: -webkit-box; +} +p.jietu { + display: inline-block;width: 100%; +} +.jianjie img,.jietu img { + width: 50%; + float: left; + /*height: 220px;*/ + margin: 0; +} +.video_list { + border-left-width: 1px; + border-left-style: solid; + font-size: 1.2em; + font-family: inherit; + font-weight: inherit; + text-decoration: inherit; + color: #444444; + border-color: #444444; + box-sizing: border-box; + margin-top: 10px; +} +.video_list_title { + height: 1.5em; + border-left-width: 5px; + border-left-style: solid; + line-height: 1.5em; + padding-left: 5px; + color: inherit; +} +.video_list_li { + line-height: 15px; + font-size: 12px; + padding: 5px; +} +.video_list span { + font-size: 12px; + color: rgb(230, 165, 25); +} +.video_list_li a { + background-color: #444444; + margin-right: 2px; + border: 1px solid #444444; + padding: 8px 5px; + display: inline-block; + border-radius: 4px; + color: #fff; + margin: 0.1rem; + margin-top: 0.2rem; + cursor: pointer; + min-width: 1.3rem; + text-align: center; +} +.video_list_li a:visited,.video_list_li a:hover { + color: #444444; + background-color: #FFFFFF; + border: 1px solid #444444; +} +.info {text-align: left;} +.info img { + width: 50%; + float: left; + height: 300px; +} +.video-content { + background-color: #fff; + padding: 4px; + display: inline-block; + width: 100%; +} +.list-content { + background-color: #fff; +} + +.list-content h1 { + padding: 10px 0 0 5px; +} +@media (max-width: 1200px){ + .video_ads { + display: none; + } +} +::-webkit-scrollbar{width:5px;} +::-webkit-scrollbar-track{background-color: #EEEEEE;} +::-webkit-scrollbar-thumb{background-color: #656F65;} +::-webkit-scrollbar-thumb:hover {background-color:#4444} +::-webkit-scrollbar-thumb:active {background-color:#4444} +@media (max-width: 1280px){ + .video_tga { + display: none; + } +} +.list-poster { + height: 3.5rem; + overflow: hidden; + border-radius: 6px 0; +} +.list-poster img { + min-height: 100%; +}/* +.relate .list-poster { + height: 2.9rem; +} +.relate .pingfen { + top: 2px; + right: 2px; +}*/ +@media (max-width: 480px){ +ul.down-list span { + width: 100%; +} +.list-poster { + box-shadow: 6px 6px 20px #999; + height: 4rem; +} +.video_list { + margin-top: 5px; +} + .video_box { + height: 4.9rem; + margin-bottom: 0; + } + .video_img { + float: left; + padding-right: 5px; + width: 3.6rem; + margin: 0; + height: 4.9rem; + overflow: hidden; + } + .video_img img { + height: auto; + margin: 0; + } + .video_info { + padding: 0; + width: 6.8rem; + font-size: 11px; + height: 100%; + overflow: auto; + } + .jianjie img,.jietu img { + width: 100%; + height: 100%; + padding-bottom: 2px; + } + .jianjie span { + font-size: 11px; + } + ::-webkit-scrollbar{width:3px;} + +} +.Flink a { + padding-top: 10px; + padding-right: 10px; + min-width: 70px; + display: inline-block; + text-align: center; +} +.E_FS { + z-index: 999; + position: absolute; +} +.E_FS a { + margin: 10px; + display: block; + color: #EAB23C; +} +.widget.widget_hot { + padding-bottom: 0; +} +.widget-top-list { + display: inline-block; + width: 100%; + margin-bottom: 10px; + font-size: 14px; + height: 20px; +} +.widget-top-list span { + padding: 2px 5px; + background-color: #ebb447; + color: #fff; + margin-right: 5px; + font-size: 12px; +} +.more_top { + margin: 0 auto; + text-align: center; + width: 100%; + display: block; + padding: 5px; + background-color: #ebb447; + color: #fff; +} +.widget_hot_inner { + display: inline-block; +} +.widget_hot_inner .u-movie { + width: 33.333%;padding: 2px; +} +.widget_hot_inner .list-poster { + height: 2.6rem; +} +.widget_hot_inner .zhuangtai { + bottom: 27px; +} +.widget_hot_inner .pingfen { + top: 2px; + right: 1px; +} +.schedule { + text-align: center; +} +.schedule p{ + font-size: 28px; + margin-bottom: 20px; + line-height: 28px; +} +.weekItem{ border-bottom: 2px solid #eee;} +.weekItem li{ + padding-bottom: 10px; + margin-right: 0.5rem; + display: -webkit-inline-box; + font-size: 16px; +} +.weekItem li.on{ + padding-bottom: 10px; + margin-right: 0.5rem; + display: -webkit-inline-box; + color: #E7A519; + font-size: 16px; +} +.fn-hide{display:none} + /*历史记录*/ + .hisBox{width:102px;height:28px;margin-top:18px;overflow:hidden;float:right;display:inline} + +.hisboxout a.history{ + display: block; + color: #999; + font-size: 12px; + margin-left: 50px; +} + +a.name{ + float: left; +} + +.looked-box{z-index:9;position:absolute;overflow:hidden;margin-left:-145px;top:28px} +.looked-box .list1{border-bottom:0;position:relative;display:block;width:100px;height:34px;line-height:32px;cursor:pointer;overflow:hidden;text-align:center;z-index:10;text-indent:-1000px;margin-left:220px} +.widget-record{background-color: #fff;border:#ddd solid 1px;width:320px;position:relative;margin-top:-1px;overflow:hidden;z-index:9} +.widget-record .list{line-height:36px;overflow:hidden;padding:5px 0} +.widget-record .list .item{padding:0 10px;overflow:hidden;letter-spacing:0} +.widget-record .list li{width:300px;padding:5px 0;height:15px;line-height:15px;margin-bottom:5px;} +.widget-record .list .kong{text-align:center;height:36px;line-height:36px;padding:0;background:0 0;border:none} + +.widget-record .list li p .del{float:right;font-size:0;width:13px;height:13px;line-height:0;margin:0 1px 0 0} +.widget-record .list li p .del:hover{float:right;background:url(../images/xhao.png);width:24px;height:24px;line-height:0;margin:0 1px 0 0} +.widget-record .list li p .now{float:right;text-indent:-10000px;width:15px;height:15px;margin-right:-2px} +.widget-record .list li p .time{margin-left:16px} +.widget-record .list li p .his_part{color:#f30;margin-right:10px;float:right} +.widget-record .list li p{height:15px;line-height:15px;width:300px} +.widget-record .info{height:30px;line-height:30px;border-top:1px solid #ddd;background-color: #fff} +.widget-record .info span.count{float:left;height:25px;color:#666;padding-left:10px} +.widget-record .info span.clock{float:right;height:25px;padding-right:10px;color:#666} diff --git a/css/style1.css b/css/style1.css new file mode 100644 index 0000000..e046f41 --- /dev/null +++ b/css/style1.css @@ -0,0 +1,130 @@ +.webfull div{display: none !important;} +.webfull .content-wrap,.webfull .content,.webfull .playerbox,.webfull .playerbox div{display:block !important;} +ul.control-box { + float: right; + margin: 0; +} +ul.control-box li { + margin-top: 5px; + margin-left: 5px; +} +.control-box .btn.btn-sm.btn-default { + padding: 0; + display: inline-flex; +} +.control-box .btn.btn-sm.btn-default a { + padding: 5px 10px; +} +.zzgg.zzgg-content.zzgg-post { + background-color: #fff; +} +.playbox {background-color: #fff;} +.playerbox{height: 470px;width: 100%;background-color: #000;overflow: hidden;} +.dplayer, div#player {height: 100%;width: 100%;} +.videotitle {padding: 5px;background-color: #fff;margin-bottom: 10px;} +.videotitle h1{font-size: 0.6rem;padding: 0;margin: 0;display: inline-block;} +.videotitle h1 span {font-size: 0.5rem;padding: 0 15px;font-weight: normal;} +.mgplaylist {background-color: #fff;} +.tab a:visited,.tab a:hover {color: #444444;background-color: #FFFFFF;border: 1px solid #444444;} +.tab a {line-height: 15px;font-size: 12px;background-color: #444444;margin-right: 2px;border: 1px solid #444444;padding: 8px 5px;display: inline-block;border-radius: 4px;color: #fff;margin: 0.1rem;margin-top: 0.2rem;cursor: pointer;min-width: 1.3rem;text-align: center;} +section.tab {padding: 10px;} +nav li{display: inline;width: 24%;text-decoration: none;padding: 5px 15px;cursor: pointer;} +nav ul {margin: 0;padding: 5px 10px;border-bottom: 2px solid #646464;margin-bottom: 5px;font-size: 18px;line-height: 0.35rem;font-weight: 800;display: table;width: 100%;} +nav#playnav {padding-top: 20px;} +li.act {border: 2px solid #646464;border-bottom: 2px solid #ffffff;padding-bottom: 1px;background-color: #fff;} +.videotitle p {margin: 5px 0;color: red;} +.mgbox {margin-top: 10px;background-color: #fff;display: inline-block;padding: 5px;} +.mgbox .title { + padding-top: 8px; +} +.mgbox .m-movies{margin: 0;} +.plyaer_box {background-color: #444;margin-top: -45px;} +.player_box_content {width: 1700px;margin: 0 auto;padding-top: 10px;height: 905px;} +.player_box_left {width: 1385px;float: left;} +.player_box_right {width: 300px;margin-left: 15px;float: left;} +h4.vtitle{margin:0;} +.choose{position: absolute;z-index: 999;right: 320px;top: auto;} +.vtitle span{margin-left: 10px;font-size: 0.5rem;color: #e6a516;} +.play-comments {background-color:#fff;padding:10px;margin-top:8px;} +@media (max-width: 560px){ + .dplayer {height: 200px;} + section.tab {padding: 5px;} + .videotitle {padding: 0;margin: 0;} + .playerbox{height: 200px;} + ul.control-box { + display: none; + } + .play{ + background-image: url(https://ae01.alicdn.com/kf/He22b37f17d744467af49c4208938d721J.gif);background-repeat: no-repeat;background-size:100% 100%; + } +} + +/*--------------SLIDER----------------*/ +ul.PICslides.clearfix { + padding: 0px; +} +ul.PICcontrols { + position: relative; + margin: -35% 0!important; +} +#PICslider { + width: 100%; + margin: 10px auto; + padding: 0; + overflow: hidden; +} +#PICslider ol, ul { + list-style: none; +} +.PICcontrols li { + /* top: 55%; */ +} +.PICcontrols li:nth-child(1) { + left: 1%; +} +.PICcontrols li:nth-child(2) { + right: 1%; +} +.PICpagination li { + background-color: #ddd; +} + +.PICpagination li.active { + background-color: #000; +} +.responsive { + width: 100%; + height: auto; +} + +.clearfix:after { + content: ""; + display: table; + clear: both; +} +ul.PICpagination { + left: 38%; + display: table; + bottom: 30px; +} +.PICslides li { + text-align: -webkit-center; +} +.no-resource { + text-align: center; + font-size: 0.45rem; + padding: 20px 0; + color: #e7a518; +} +@media (max-width: 480px){ + .PICcontrols li:nth-child(1) { + left: 2%; +} +ul.PICpagination { + left: 25%; +} +.PICcontrols li { + top: 33%; +} +} +/*--------------SLIDER END----------------*/ \ No newline at end of file diff --git a/hammer.min.js.map b/hammer.min.js.map new file mode 100644 index 0000000..2071fb1 --- /dev/null +++ b/hammer.min.js.map @@ -0,0 +1,7 @@ +/*! Hammer.JS - v2.0.4 - 2014-09-28 + * http://hammerjs.github.io/ + * + * Copyright (c) 2014 Jorik Tangelder; + * Licensed under the MIT license */ +!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;eh&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;af?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distancethis.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=e[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:g});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(e)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:g});return a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one("bsTransitionEnd",function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger(m)),f&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(b=!b),e||d.data("bs.collapse",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.VERSION="3.2.0",c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c=a.Event("show.bs.collapse");if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data("bs.collapse");if(e&&e.transitioning)return;b.call(d,"hide"),e||d.data("bs.collapse",null)}var f=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return g.call(this);var h=a.camelCase(["scroll",f].join("-"));this.$element.one("bsTransitionEnd",a.proxy(g,this)).emulateTransitionEnd(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=b,a.fn.collapse.Constructor=c,a.fn.collapse.noConflict=function(){return a.fn.collapse=d,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d,e=a(this),f=e.attr("data-target")||c.preventDefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data("bs.collapse"),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle="collapse"][data-parent="'+j+'"]').not(e).addClass("collapsed"),e[g.hasClass("in")?"addClass":"removeClass"]("collapsed")),b.call(g,i)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.2.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('"),t.hide()),t}function y(){var t=g(),r;n.customLoaderProc!==!1?n.customLoaderProc(t):(r=e(n.container).find(n.item).last(),r.after(t),t.fadeIn())}function b(){var e=g();e.remove()}function w(t){var r=e(".ias_trigger");return r.size()===0&&(r=e('"),r.hide()),e("a",r).unbind("click").bind("click",function(){return S(),t.call(),!1}),r}function E(t){var r=w(t),i;n.customTriggerProc!==!1?n.customTriggerProc(r):(i=e(n.container).find(n.item).last(),i.after(r),r.fadeIn())}function S(){var e=w();e.remove()}var n=e.extend({},e.ias.defaults,t),r=new e.ias.util,i=new e.ias.paging(n.scrollContainer),s=n.history?new e.ias.history:!1,o=this;u()},e.ias.defaults={container:"#container",scrollContainer:e(window),item:".item",pagination:"#pagination",next:".next",noneleft:!1,loader:'',loaderDelay:600,triggerPageThreshold:3,trigger:"Load more items",thresholdMargin:0,history:!0,onPageChange:function(){},beforePageChange:function(){},onLoadItems:function(){},onRenderComplete:function(){},customLoaderProc:!1,customTriggerProc:!1},e.ias.util=function(){function i(){e(window).load(function(){t=!0})}var t=!1,n=!1,r=this;i(),this.forceScrollTop=function(i){e("html,body").scrollTop(0),n||(t?(i.call(),n=!0):setTimeout(function(){r.forceScrollTop(i)},1))},this.getCurrentScrollOffset=function(e){var t,n;return e.get(0)===window?t=e.scrollTop():t=e.offset().top,n=e.height(),t+n}},e.ias.paging=function(){function s(){e(window).scroll(o)}function o(){var t,s,o,f,l;t=i.getCurrentScrollOffset(e(window)),s=u(t),o=a(t),r!==s&&(f=o[0],l=o[1],n.call({},s,f,l)),r=s}function u(e){for(var n=t.length-1;n>0;n--)if(e>t[n][0])return n+1;return 1}function a(e){for(var n=t.length-1;n>=0;n--)if(e>t[n][0])return t[n];return null}var t=[[0,document.location.toString()]],n=function(){},r=1,i=new e.ias.util;s(),this.getCurPageNum=function(t){return t=t||i.getCurrentScrollOffset(e(window)),u(t)},this.onChangePage=function(e){n=e},this.pushPages=function(e,n){t.push([e,n])}},e.ias.history=function(){function n(){t=!!(window.history&&history.pushState&&history.replaceState),t=!1}var e=!1,t=!1;n(),this.setPage=function(e,t){this.updateState({page:e},"",t)},this.havePage=function(){return this.getState()!==!1},this.getPage=function(){var e;return this.havePage()?(e=this.getState(),e.page):1},this.getState=function(){var e,n,r;if(t){n=history.state;if(n&&n.ias)return n.ias}else{e=window.location.hash.substring(0,7)==="#/page/";if(e)return r=parseInt(window.location.hash.replace("#/page/",""),10),{page:r}}return!1},this.updateState=function(t,n,r){e?this.replaceState(t,n,r):this.pushState(t,n,r)},this.pushState=function(n,r,i){var s;t?history.pushState({ias:n},r,i):(s=n.page>0?"#/page/"+n.page:"",window.location.hash=s),e=!0},this.replaceState=function(e,n,r){t?history.replaceState({ias:e},n,r):this.pushState(e,n,r)}}})(jQuery); + +jQuery.cookie = function(name, value, options) { + if (typeof value != 'undefined') { // name and value given, set cookie + options = options || {}; + if (value === null) { + value = ''; + options.expires = -1; + } + var expires = ''; + if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { + var date; + if (typeof options.expires == 'number') { + date = new Date(); + date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); + } else { + date = options.expires; + } + expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE + } + var path = options.path ? '; path=' + options.path : ''; + var domain = options.domain ? '; domain=' + options.domain : ''; + var secure = options.secure ? '; secure' : ''; + document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); + } else { // only name given, get cookie + var cookieValue = null; + if (document.cookie && document.cookie != '') { + var cookies = document.cookie.split(';'); + for (var i = 0; i < cookies.length; i++) { + var cookie = jQuery.trim(cookies[i]); + // Does this cookie string begin with the name we want? + if (cookie.substring(0, name.length + 1) == (name + '=')) { + cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); + break; + } + } + } + return cookieValue; + } +}; + ++(function($) { + var LS={ + get:function(dataKey){ + if(window.localStorage){ + return localStorage.getItem(dataKey); + }else{ + return $.cookie(dataKey); + } + }, + set:function(key,value){ + if(window.localStorage){ + localStorage[key]=value; + }else{ + $.cookie(key,value); + } + }, + remove:function(key){ + if(window.localStorage){ + localStorage.removeItem(key); + }else{ + $.cookie(key,undefined); + } + } + } + + + + + var el_carousel = $('.carousel') + + el_carousel.carousel({ + interval: 4000 + }) + + + if( el_carousel.length && $('body').hasClass('focusslide_s_m') ){ + var mc = new Hammer(el_carousel[0]); + + mc.on("panleft panright swipeleft swiperight", function(ev) { + if( ev.type == 'swipeleft' || ev.type == 'panleft' ){ + el_carousel.carousel('next') + }else if( ev.type == 'swiperight' || ev.type == 'panright' ){ + el_carousel.carousel('prev') + } + // el_carousel[0].textContent = ev.type +" gesture detected."; + }); + } + + + /* + * + * ==================================================================================================== + */ + $('.m-search').on('click', function(){ + $('.search-form').slideToggle(200, function(){ + if( $('.m-search').css('display') == 'block' ){ + $('.search-form .form-control').focus() + } + }) + }) + + + + $('.navmore').on('click', function(){ + $('body').toggleClass('navshows'); + }) + + + $('body').append('
') + + // lazy avatar + $('.content .avatar').lazyload({ + placeholder: jui.uri + '/images/avatar-default.png', + event: 'scrollstop' + }); + + $('.sidebar .avatar').lazyload({ + placeholder: jui.uri + '/images/avatar-default.png', + event: 'scrollstop' + }); + + $('.content .thumb').lazyload({ + placeholder: jui.uri + '/images/thumbnail.png', + event: 'scrollstop' + }); + + $('.sidebar .thumb').lazyload({ + placeholder: jui.uri + '/images/thumbnail.png', + event: 'scrollstop' + }); + + $('.content .wp-smiley').lazyload({ + event: 'scrollstop' + }); + + $('.sidebar .wp-smiley').lazyload({ + event: 'scrollstop' + }); + + + var elments = { + sidebar: $('.sidebar'), + footer: $('.footer') + } + + $('.feed-weixin').popover({ + placement: $('body').hasClass('ui-navtop')?'bottom':'right', + trigger: 'hover', + container: 'body', + html: true + }) + + if( Number(jui.ajaxpager) ){ + $.ias({ + triggerPageThreshold: jui.ajaxpager?Number(jui.ajaxpager)+1:5, + history: false, + container : '.content', + item: '.excerpt', + pagination: '.pagination', + next: '.next-page a', + loader: '
', + trigger: 'More', + onRenderComplete: function() { + $('.excerpt .thumb').lazyload({ + placeholder: jui.uri + '/images/thumbnail.png', + threshold: 400 + }); + } + }); + } + + + /* + * page search + * ==================================================== + */ + if( $('body').hasClass('search-results') ){ + var val = $('.search-form .form-control').val() + var reg = eval('/'+val+'/i') + $('.excerpt h2 a, .excerpt .note').each(function(){ + $(this).html( $(this).text().replace(reg, function(w){ return ''+w+'' }) ) + }) + } + + if( elments.sidebar && jui.roll ){ + + jui.roll = jui.roll.split(' ') + + var h1 = 20, h2 = 40, h3 = 20 + + if( $('body').hasClass('ui-navtop') ){ + h1 = 100, h2 = 120 + } + + var rollFirst = elments.sidebar.find('.widget:eq('+(Number(jui.roll[0])-1)+')') + var sheight = rollFirst[0].offsetHeight + rollFirst.on('affix-top.bs.affix', function(){ + rollFirst.css({top: 0}) + sheight = rollFirst[0].offsetHeight + + for (var i = 1; i < jui.roll.length; i++) { + var item = Number(jui.roll[i])-1 + var current = elments.sidebar.find('.widget:eq('+item+')') + current.removeClass('affix').css({top: 0}) + }; + }) + + rollFirst.on('affix.bs.affix', function(){ + rollFirst.css({top: h1}) + + for (var i = 1; i < jui.roll.length; i++) { + var item = Number(jui.roll[i])-1 + var current = elments.sidebar.find('.widget:eq('+item+')') + current.addClass('affix').css({top: sheight+h2}) + sheight += current[0].offsetHeight + h3 + }; + }) + + rollFirst.affix({ + offset: { + top: elments.sidebar.height(), + bottom: (elments.footer.height()||0) + 10 + } + }) + } + + $('.excerpt header small').each(function() { + $(this).tooltip({ + container: 'body', + title: '此文有 ' + $(this).text() + '张 图片' + }) + }) + + $('.article-tags a, .post-tags a').each(function() { + $(this).tooltip({ + container: 'body', + placement: 'bottom', + title: '查看关于 ' + $(this).text() + ' 视频' + }) + }) + + $('.cat').each(function() { + $(this).tooltip({ + container: 'body', + title: '查看关于 ' + $(this).text() + ' 的视频' + }) + }) + + $('.widget_tags a').tooltip({ + container: 'body' + }) + + $('.readers a, .widget_comments a').tooltip({ + container: 'body', + placement: 'top' + }) + + $('.article-meta li:eq(1) a').tooltip({ + container: 'body', + placement: 'bottom' + }) + $('.post-edit-link').tooltip({ + container: 'body', + placement: 'right', + title: '去后台编辑此文章' + }) + + + /*if ($('.article-content').length){ + $('.article-content img').attr('data-tag', 'bdshare') + + video_ok() + $(window).resize(function(event) { + video_ok() + }); + }*/ + + function video_ok(){ + $('.article-content embed, .article-content video, .article-content iframe').each(function(){ + var w = $(this).attr('width'), + h = $(this).attr('height') + if( h ){ + $(this).css('height', $(this).width()/(w/h)) + } + }) + } + + /*window._bd_share_config = { + common: { + "bdText": "", + "bdMini": "2", + "bdMiniList": false, + "bdPic": "", + "bdStyle": "0" + }, + share: [{ + // "bdSize": "24", + bdCustomStyle: jui.uri + '/css/share.css' + }] + } + with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion=' + ~(-new Date() / 36e5)];*/ + + + $('.rollto a').on('click', function() { + scrollTo() + }) + + $(window).scroll(function() { + var scroller = $('.rollto'); + document.documentElement.scrollTop + document.body.scrollTop > 200 ? scroller.fadeIn() : scroller.fadeOut(); + }) + + /* functions + * ==================================================== + */ + function scrollTo(name, speed) { + if (!speed) speed = 300 + if (!name) { + $('html,body').animate({ + scrollTop: 0 + }, speed) + } else { + if ($(name).length > 0) { + $('html,body').animate({ + scrollTop: $(name).offset().top + }, speed) + } + } + } + + + var islogin = false + if( $('body').hasClass('logged-in') ) islogin = true + + /* event click + * ==================================================== + */ + $(document).on('click', function(e) { + e = e || window.event; + var target = e.target || e.srcElement, + _ta = $(target) + + if (_ta.hasClass('disabled')) return + if (_ta.parent().attr('data-event')) _ta = $(_ta.parent()[0]) + if (_ta.parent().parent().attr('data-event')) _ta = $(_ta.parent().parent()[0]) + + var type = _ta.attr('data-event') + + switch (type) { + case 'like': + var pid = _ta.attr('data-pid') + if ( !pid || !/^\d{1,}$/.test(pid) ) return; + + if( !islogin ){ + var lslike = LS.get('_likes') || '' + if( lslike.indexOf(','+pid+',')!==-1 ) return alert('你已赞!') + + if( !lslike ){ + LS.set('_likes', ','+pid+',') + }else{ + if( lslike.length >= 160 ){ + lslike = lslike.substring(0,lslike.length-1) + lslike = lslike.substr(1).split(',') + lslike.splice(0,1) + lslike.push(pid) + lslike = lslike.join(',') + LS.set('_likes', ','+lslike+',') + }else{ + LS.set('_likes', lslike+pid+',') + } + } + } + + $.ajax({ + url: jui.uri + '/actions/index.php', + type: 'POST', + dataType: 'json', + data: { + key: 'like', + pid: pid + }, + success: function(data, textStatus, xhr) { + //called when successful + // console.log(data) + if (data.error) return false; + // console.log( data.response ) + // if( data.type === 1 ){ + _ta.toggleClass('actived') + _ta.find('span').html(data.response) + // } + }, + error: function(xhr, textStatus, errorThrown) { + //called when there is an error + console.log(xhr) + } + }); + + break; + case 'comment-user-change': + $('#comment-author-info').slideDown(300) + $('#comment-author-info input:first').focus() + + break; + case 'login': + $('#modal-login').modal('show') + + + break; + } + }) + + + + $('.commentlist .url').attr('target','_blank') + + /*$('#comment-author-info p input').focus(function() { + $(this).parent('p').addClass('on') + }) + $('#comment-author-info p input').blur(function() { + $(this).parent('p').removeClass('on') + }) + + $('#comment').focus(function(){ + if( $('#author').val()=='' || $('#email').val()=='' ) $('.comt-comterinfo').slideDown(300) + })*/ + + var edit_mode = '0', + txt1 = '
正在提交, 请稍候...
', + txt2 = '
#
', + txt3 = '">', + cancel_edit = '取消编辑', + edit, + num = 1, + comm_array = []; + comm_array.push(''); + + $comments = $('#comments-title'); + $cancel = $('#cancel-comment-reply-link'); + cancel_text = $cancel.text(); + $submit = $('#commentform #submit'); + $submit.attr('disabled', false); + $('.comt-tips').append(txt1 + txt2); + $('.comt-loading').hide(); + $('.comt-error').hide(); + $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body'); + $('#commentform').submit(function() { + $('.comt-loading').show(); + $submit.attr('disabled', true).fadeTo('slow', 0.5); + if (edit) $('#comment').after(''); + $.ajax({ + url: jui.uri+'/modules/comment.php', + data: $(this).serialize(), + type: $(this).attr('method'), + error: function(request) { + $('.comt-loading').hide(); + $('.comt-error').show().html(request.responseText); + setTimeout(function() { + $submit.attr('disabled', false).fadeTo('slow', 1); + $('.comt-error').fadeOut() + }, + 3000) + }, + success: function(data) { + $('.comt-loading').hide(); + comm_array.push($('#comment').val()); + $('textarea').each(function() { + this.value = '' + }); + var t = addComment, + cancel = t.I('cancel-comment-reply-link'), + temp = t.I('wp-temp-form-div'), + respond = t.I(t.respondId), + post = t.I('comment_post_ID').value, + parent = t.I('comment_parent').value; + if (!edit && $comments.length) { + n = parseInt($comments.text().match(/\d+/)); + $comments.text($comments.text().replace(n, n + 1)) + } + new_htm = '" id="new_comm_' + num + '">') : ('\n
    0) { + $submit.val(wait); + wait--; + setTimeout(countdown, 1000) + } else { + $submit.val(submit_val).attr('disabled', false).fadeTo('slow', 1); + wait = 15 + } + } + + + +})(jQuery) \ No newline at end of file diff --git a/js/formValidator-4.0.1.js b/js/formValidator-4.0.1.js new file mode 100644 index 0000000..465d390 --- /dev/null +++ b/js/formValidator-4.0.1.js @@ -0,0 +1,1176 @@ +//==================================================================================================== +// [插件名称] jQuery formValidator +//---------------------------------------------------------------------------------------------------- +// [描 述] jQuery formValidator表单验证插件,它是基于jQuery类库,实现了js脚本于页面的分离。对一个表 +// 单对象,你只需要写一行代码就可以轻松实现20种以上的脚本控制。现支持一个表单元素累加很多种 +// 校验方式,采用配置信息的思想,而不是把信息写在表单元素上,能比较完美的实现ajax请求。 +//---------------------------------------------------------------------------------------------------- +// [作者网名] 猫冬 +// [邮 箱] wzmaodong@126.com +// [作者博客] http://wzmaodong.cnblogs.com +// [QQ群交流] 74106519 +// [更新日期] 2011-05-22 +// [版 本 号] ver4.0.1 +//==================================================================================================== +(function($) { + +$.formValidator = +{ + //全局配置 + initConfig : function(controlOptions) + { + var settings = + { + debug:false, //调试模式 + validatorGroup : "1", //分组号 + alertMessage:false, //是否为弹出窗口提示模式 + validObjects:[], //参加校验的控件集合 + ajaxObjects:"", //传到服务器的控件列表 + forceValid:false, //控件输入正确之后,才允许失去焦点 + onSuccess: function() {return true;}, //提交成功后的回调函数 + onError: $.noop, //提交失败的回调函数 + submitOnce:false, //页面是否提交一次,不会停留 + formID:"", //表单ID + submitButtonID:"", //提交按钮ID + autoTip: false, //是否自动构建提示层 + tidyMode:false, //精简模式 + errorFocus:true, //第一个错误的控件获得焦点 + wideWord:true, //一个汉字当做2个长度 + status:"", //提交的状态:submited、sumbiting、sumbitingWithAjax + submitAfterAjaxPrompt : "当前有数据正在进行服务器端校验,请稍候", //控件失去焦点后,触发ajax校验,没有返回结果前的错误提示 + validCount:0, //含ajaxValidator的控件个数 + ajaxCountSubmit:0, //提交的时候触发的ajax验证个数 + ajaxCountValid:0, //失去焦点时候触发的ajax验证个数 + inIframe:false + + }; + controlOptions = controlOptions || {}; + $.extend(settings, controlOptions); + //如果是精简模式,发生错误的时候,第一个错误的控件就不获得焦点 + if(settings.tidyMode){settings.errorFocus=false}; + //如果填写了表单和按钮,就注册验证事件 + if(settings.formID!=""){ + $("#"+settings.formID).submit(function(){return $.formValidator.bindSubmit(settings);}); + } + else if(settings.submitButtonID!="") + { + $("#"+settings.submitButtonID).click(function(){return $.formValidator.bindSubmit(settings);}); + } + $('body').data(settings.validatorGroup, settings); + }, + + //调用验证函数 + bindSubmit : function(settings) + { + if (settings.ajaxCountValid > 0 && settings.submitAfterAjaxPrompt != "") { + alert(settings.submitAfterAjaxPrompt); + return false; + } + return $.formValidator.pageIsValid(settings.validatorGroup); + }, + + //各种校验方式支持的控件类型 + sustainType : function(id,setting) + { + var elem = $("#"+id).get(0); + var srcTag = elem.tagName; + var stype = elem.type; + switch(setting.validateType) + { + case "InitValidator": + return true; + case "InputValidator": + return (srcTag == "INPUT" || srcTag == "TEXTAREA" || srcTag == "SELECT"); + case "CompareValidator": + return ((srcTag == "INPUT" || srcTag == "TEXTAREA") ? (stype != "checkbox" && stype != "radio") : false); + case "AjaxValidator": + return (stype == "text" || stype == "textarea" || stype == "file" || stype == "password" || stype == "select-one"); + case "RegexValidator": + return ((srcTag == "INPUT" || srcTag == "TEXTAREA") ? (stype != "checkbox" && stype != "radio") : false); + case "FunctionValidator": + return true; + } + }, + + //如果validator对象对应的element对象的validator属性追加要进行的校验。 + appendValid : function(id, setting ) + { + //如果是各种校验不支持的类型,就不追加到。返回-1表示没有追加成功 + if(!$.formValidator.sustainType(id,setting)) return -1; + var srcjo = $("#"+id).get(0); + //重新初始化 + if (setting.validateType=="InitValidator" || srcjo.settings == undefined ){srcjo.settings = new Array();} + var len = srcjo.settings.push( setting ); + srcjo.settings[len - 1].index = len - 1; + return len - 1; + }, + + //设置显示信息 + setTipState : function(elem,showclass,showmsg) + { + var initConfig = $('body').data(elem.validatorGroup); + var tip = $("#"+elem.settings[0].tipID); + if(showmsg==null || showmsg=="") + { + tip.hide(); + } + else + { + if(initConfig.tidyMode) + { + //显示和保存提示信息 + $("#fv_content").html(showmsg); + elem.Tooltip = showmsg; + if(showclass!="onError"){tip.hide();} + } + else + { + tip.show().removeClass().addClass( showclass+" ui-message" ).html( showmsg ); + } + } + }, + + //把提示层重置成原始提示(如果有defaultPassed,应该设置为onCorrect) + resetTipState : function(validatorGroup) + { + if(validatorGroup == undefined){validatorGroup = "1"}; + var initConfig = $('body').data(validatorGroup); + $.each(initConfig.validObjects,function(){ + var elem = this.get(0); + var setting = elem.settings[0]; + var passed = setting.defaultPassed; + $.formValidator.setTipState(elem, passed ? "onCorrect" : "onShow", passed ? setting.onCorrect : setting.onShow); + }); + }, + + //设置错误的显示信息 + setFailState : function(tipID,showmsg) + { + var tip = $("#"+tipID); + tip.removeClass().addClass("onError ui-message ui-warning").html(showmsg); + }, + + //根据单个对象,正确:正确提示,错误:错误提示 + showMessage : function(returnObj) + { + var id = returnObj.id; + var elem = $("#"+id).get(0); + var isValid = returnObj.isValid; + var setting = returnObj.setting;//正确:setting[0],错误:对应的setting[i] + var showmsg = "",showclass = ""; + var intiConfig = $('body').data(elem.validatorGroup); + if (!isValid) + { + showclass = "onError"; + if(setting.validateType=="AjaxValidator") + { + if(setting.lastValid=="") + { + showclass = "onLoad"; + showmsg = setting.onWait; + } + else + { + showmsg = setting.onError; + } + } + else + { + showmsg = (returnObj.errormsg==""? setting.onError : returnObj.errormsg); + + } + if(intiConfig.alertMessage) + { + if(elem.validValueOld!=$(elem).val()){alert(showmsg);} + } + else + { + $.formValidator.setTipState(elem,showclass,showmsg); + } + } + else + { + //验证成功后,如果没有设置成功提示信息,则给出默认提示,否则给出自定义提示;允许为空,值为空的提示 + showmsg = $.formValidator.isEmpty(id) ? setting.onEmpty : setting.onCorrect; + $.formValidator.setTipState(elem,"onCorrect",showmsg); + } + return showmsg; + }, + + showAjaxMessage : function(returnObj) + { + var elem = $("#"+returnObj.id).get(0); + var setting = elem.settings[returnObj.ajax]; + var validValueOld = elem.validValueOld; + var validvalue = $(elem).val(); + returnObj.setting = setting; + //defaultPassed还未处理 + if(validValueOld!= validvalue || validValueOld == validvalue && !elem.onceValided) + { + $.formValidator.ajaxValid(returnObj); + } + else + { + if(setting.isValid!=undefined && !setting.isValid){ + elem.lastshowclass = "onError"; + elem.lastshowmsg = setting.onError; + } + $.formValidator.setTipState(elem,elem.lastshowclass,elem.lastshowmsg); + } + }, + + //获取指定字符串的长度 + getLength : function(id) + { + var srcjo = $("#"+id); + var elem = srcjo.get(0); + var sType = elem.type; + var len = 0; + switch(sType) + { + case "text": + case "hidden": + case "password": + case "textarea": + case "file": + var val = srcjo.val(); + var initConfig = $('body').data(elem.validatorGroup); + if (initConfig.wideWord) + { + for (var i = 0; i < val.length; i++) + { + len = len + ((val.charCodeAt(i) >= 0x4e00 && val.charCodeAt(i) <= 0x9fa5) ? 2 : 1); + } + } + else{ + len = val.length; + } + break; + case "checkbox": + case "radio": + len = $("input[type='"+sType+"'][name='"+srcjo.attr("name")+"']:checked").length; + break; + case "select-one": + len = elem.options ? elem.options.selectedIndex : -1; + break; + case "select-multiple": + len = $("select[name="+elem.name+"] option:selected").length; + break; + } + return len; + }, + + //结合empty这个属性,判断仅仅是否为空的校验情况。 + isEmpty : function(id) + { + return ($("#"+id).get(0).settings[0].empty && $.formValidator.getLength(id)==0); + }, + + //对外调用:判断单个表单元素是否验证通过,不带回调函数 + isOneValid : function(id) + { + return $.formValidator.oneIsValid(id).isValid; + }, + + //验证单个是否验证通过,正确返回settings[0],错误返回对应的settings[i] + oneIsValid : function (id) + { + var returnObj = new Object(); + var elem = $("#"+id).get(0); + returnObj.initConfig = $('body').data(elem.validatorGroup); + returnObj.id = id; + returnObj.ajax = -1; + returnObj.errormsg = ""; //自定义错误信息 + var settings = elem.settings; + var settingslen = settings.length; + var validateType; + //只有一个formValidator的时候不检验 + if (settingslen==1){settings[0].bind=false;} + if(!settings[0].bind){return null;} + for ( var i = 0 ; i < settingslen ; i ++ ) + { + if(i==0){ + //如果为空,直接返回正确 + if($.formValidator.isEmpty(id)){ + returnObj.isValid = true; + returnObj.setting = settings[0]; + break; + } + continue; + } + returnObj.setting = settings[i]; + validateType = settings[i].validateType; + //根据类型触发校验 + switch(validateType) + { + case "InputValidator": + $.formValidator.inputValid(returnObj); + break; + case "CompareValidator": + $.formValidator.compareValid(returnObj); + break; + case "RegexValidator": + $.formValidator.regexValid(returnObj); + break; + case "FunctionValidator": + $.formValidator.functionValid(returnObj); + break; + case "AjaxValidator": + //如果是ajax校验,这里直接取上次的结果值 + returnObj.ajax = i + break; + } + //校验过一次 + elem.onceValided = true; + if(!settings[i].isValid) { + returnObj.isValid = false; + returnObj.setting = settings[i]; + break; + }else{ + returnObj.isValid = true; + returnObj.setting = settings[0]; + if (settings[i].validateType == "AjaxValidator"){break}; + } + } + return returnObj; + }, + + //验证所有需要验证的对象,并返回是否验证成功(如果曾经触发过ajaxValidator,提交的时候就不触发校验,直接读取结果) + pageIsValid : function (validatorGroup) + { + if(validatorGroup == undefined){validatorGroup = "1"}; + var isValid = true,returnObj,firstErrorMessage="",errorMessage; + var error_tip = "^",thefirstid,name,name_list="^"; + var errorlist = new Array(); + //设置提交状态、ajax是否出错、错误列表 + var initConfig = $('body').data(validatorGroup); + initConfig.status = "sumbiting"; + initConfig.ajaxCountSubmit = 0; + //遍历所有要校验的控件,如果存在ajaxValidator就先直接触发 + $.each(initConfig.validObjects,function() + { + if (this.settings[0].bind && this.validatorAjaxIndex!=undefined && this.onceValided == undefined) { + returnObj = $.formValidator.oneIsValid(this.id); + if (returnObj.ajax == this.validatorAjaxIndex) { + initConfig.status = "sumbitingWithAjax"; + $.formValidator.ajaxValid(returnObj); + } + } + }); + //如果有提交的时候有触发ajaxValidator,所有的处理都放在ajax里处理 + if(initConfig.ajaxCountSubmit > 0){return false} + //遍历所有要校验的控件 + $.each(initConfig.validObjects,function() + { + //只校验绑定的控件 + if(this.settings[0].bind){ + name = this.name; + //相同name只校验一次 + if (name_list.indexOf("^"+name+"^") == -1) { + onceValided = this.onceValided == undefined ? false : this.onceValided; + if(name){name_list = name_list + name + "^"}; + returnObj = $.formValidator.oneIsValid(this.id); + if (returnObj) { + //校验失败,获取第一个发生错误的信息和ID + if (!returnObj.isValid) { + //记录不含ajaxValidator校验函数的校验结果 + isValid = false; + errorMessage = returnObj.errormsg == "" ? returnObj.setting.onError : returnObj.errormsg; + errorlist[errorlist.length] = errorMessage; + if (thefirstid == null) {thefirstid = returnObj.id}; + if(firstErrorMessage==""){firstErrorMessage=errorMessage}; + } + //为了解决使用同个TIP提示问题:后面的成功或失败都不覆盖前面的失败 + if (!initConfig.alertMessage) { + var tipID = this.settings[0].tipID; + if (error_tip.indexOf("^" + tipID + "^") == -1) { + if (!returnObj.isValid) {error_tip = error_tip + tipID + "^"}; + $.formValidator.showMessage(returnObj); + } + } + } + } + } + }); + + //成功或失败进行回调函数的处理,以及成功后的灰掉提交按钮的功能 + if(isValid) + { + initConfig.onSuccess(); + if(initConfig.submitOnce){$(":submit,:button,:reset").attr("disabled",true);} + return false; + } + else + { + initConfig.onError(firstErrorMessage, $("#" + thefirstid).get(0), errorlist); + if (thefirstid && initConfig.errorFocus) {$("#" + thefirstid).focus()}; + } + initConfig.status="init"; + return !initConfig.debug && isValid; + }, + + //ajax校验 + ajaxValid : function(returnObj) + { + var id = returnObj.id; + var srcjo = $("#"+id); + var elem = srcjo.get(0); + var initConfig = returnObj.initConfig; + var settings = elem.settings; + var setting = settings[returnObj.ajax]; + var ls_url = setting.url; + //获取要传递的参数 + var validatorGroup = elem.validatorGroup; + var initConfig = $('body').data(validatorGroup); + var parm = $(initConfig.ajaxObjects).serialize(); + //添加触发的控件名、随机数、传递的参数 + var parm = encodeURIComponent(srcjo.val())+"-"+Math.random();//"clientid="+id+"&"+id+"="+encodeURIComponent(srcjo.val()); + ls_url = ls_url + parm;//(ls_url.indexOf("?")>0?("&"+ parm) : ("?"+parm)); + //parm = "clientid=" + id + "&" +(setting.randNumberName ? setting.randNumberName+"="+((new Date().getTime())+Math.round(Math.random() * 10000)) : "") + (parm.length > 0 ? "&" + parm : ""); + //ls_url = ls_url + (ls_url.indexOf("?") > -1 ? ("&" + parm) : ("?" + parm)); + //发送ajax请求 + //alert(setting.type); + if(setting.type=='post') + { + setting.data=srcjo.attr('id')+"="+srcjo.val(); + } + $.ajax( + { + type : setting.type, + url : ls_url, + cache : setting.cache, + data : setting.data, + async : setting.async, + timeout : setting.timeout, + dataType : setting.dataType, + success : function(data, textStatus, jqXHR){ + var lb_ret,ls_status,ls_msg; + $.formValidator.dealAjaxRequestCount(validatorGroup,-1); + //根据业务判断设置显示信息 + lb_ret = setting.success(data, textStatus, jqXHR); + setting.isValid = lb_ret; + if(lb_ret){ + ls_status = "onCorrect"; + ls_msg = data.data!=undefined?data.data:settings[0].onCorrect; + }else{ + ls_status = "onError"; + ls_msg = data.data!=undefined?data.data:setting.onError; + } + $.formValidator.setTipState(elem,ls_status,ls_msg); + //提交的时候触发了ajax校验,等ajax校验完成,无条件重新校验 + if(returnObj.initConfig.status=="sumbitingWithAjax" && returnObj.initConfig.ajaxCountSubmit == 0) + { + if (initConfig.formID != "") { + $('#' + initConfig.formID).trigger('submit'); + }else if (initConfig.formID != ""){ + $('#' + initConfig.submitButtonID).trigger('click'); + } + } + }, + complete : function(jqXHR, textStatus){ + if(setting.buttons && setting.buttons.length > 0){setting.buttons.attr({"disabled":false})}; + setting.complete(jqXHR, textStatus); + }, + beforeSend : function(jqXHR, configs){ + //本控件如果正在校验,就中断上次 + if (this.lastXMLHttpRequest) {this.lastXMLHttpRequest.abort()}; + this.lastXMLHttpRequest = jqXHR; + //再服务器没有返回数据之前,先回调提交按钮 + if(setting.buttons && setting.buttons.length > 0){setting.buttons.attr({"disabled":true})}; + var isValid = setting.beforeSend(jqXHR,configs); + if(isValid) + { + setting.isValid = false; //如果前面ajax请求成功了,再次请求之前先当作错误处理 + $.formValidator.setTipState(elem,"onLoad",settings[returnObj.ajax].onWait); + } + setting.lastValid = "-1"; + if(isValid){$.formValidator.dealAjaxRequestCount(validatorGroup,1);} + return isValid; + }, + error : function(jqXHR, textStatus, errorThrown){ + $.formValidator.dealAjaxRequestCount(validatorGroup,-1); + $.formValidator.setTipState(elem,"onError",setting.onError); + setting.isValid = false; + setting.error(jqXHR, textStatus, errorThrown); + }, + processData : setting.processData + }); + }, + + //处理ajax的请求个数 + dealAjaxRequestCount : function(validatorGroup,val) + { + var initConfig = $('body').data(validatorGroup); + initConfig.ajaxCountValid = initConfig.ajaxCountValid + val; + if (initConfig.status == "sumbitingWithAjax") { + initConfig.ajaxCountSubmit = initConfig.ajaxCountSubmit + val; + } + }, + + //对正则表达式进行校验(目前只针对input和textarea) + regexValid : function(returnObj) + { + var id = returnObj.id; + var setting = returnObj.setting; + var srcTag = $("#"+id).get(0).tagName; + var elem = $("#"+id).get(0); + var isValid; + //如果有输入正则表达式,就进行表达式校验 + if(elem.settings[0].empty && elem.value==""){ + setting.isValid = true; + } + else + { + var regexArray = setting.regExp; + setting.isValid = false; + if((typeof regexArray)=="string") regexArray = [regexArray]; + $.each(regexArray, function() { + var r = this; + if(setting.dataType=="enum"){r = eval("regexEnum."+r);} + if(r==undefined || r=="") + { + return false; + } + isValid = (new RegExp(r, setting.param)).test($(elem).val()); + + if(setting.compareType=="||" && isValid) + { + setting.isValid = true; + return false; + } + if(setting.compareType=="&&" && !isValid) + { + return false + } + }); + if(!setting.isValid) setting.isValid = isValid; + } + }, + + //函数校验。返回true/false表示校验是否成功;返回字符串表示错误信息,校验失败;如果没有返回值表示处理函数,校验成功 + functionValid : function(returnObj) + { + var id = returnObj.id; + var setting = returnObj.setting; + var srcjo = $("#"+id); + var lb_ret = setting.fun(srcjo.val(),srcjo.get(0)); + if(lb_ret != undefined) + { + if((typeof lb_ret) === "string"){ + setting.isValid = false; + returnObj.errormsg = lb_ret; + }else{ + setting.isValid = lb_ret; + } + } + }, + + //对input和select类型控件进行校验 + inputValid : function(returnObj) + { + var id = returnObj.id; + var setting = returnObj.setting; + var srcjo = $("#"+id); + var elem = srcjo.get(0); + var val = srcjo.val(); + var sType = elem.type; + var len = $.formValidator.getLength(id); + var empty = setting.empty,emptyError = false; + switch(sType) + { + case "text": + case "hidden": + case "password": + case "textarea": + case "file": + if (setting.type == "size") { + empty = setting.empty; + if(!empty.leftEmpty){ + emptyError = (val.replace(/^[ \s]+/, '').length != val.length); + } + if(!emptyError && !empty.rightEmpty){ + emptyError = (val.replace(/[ \s]+$/, '').length != val.length); + } + if(emptyError && empty.emptyError){returnObj.errormsg= empty.emptyError} + } + case "checkbox": + case "select-one": + case "select-multiple": + case "radio": + var lb_go_on = false; + if(sType=="select-one" || sType=="select-multiple"){setting.type = "size";} + var type = setting.type; + if (type == "size") { //获得输入的字符长度,并进行校验 + if(!emptyError){lb_go_on = true} + if(lb_go_on){val = len} + } + else if (type =="date" || type =="datetime") + { + var isok = false; + if(type=="date"){lb_go_on = isDate(val)}; + if(type=="datetime"){lb_go_on = isDate(val)}; + if(lb_go_on){val = new Date(val);setting.min=new Date(setting.min);setting.max=new Date(setting.max);}; + }else{ + stype = (typeof setting.min); + if(stype =="number") + { + val = (new Number(val)).valueOf(); + if(!isNaN(val)){lb_go_on = true;} + } + if(stype =="string"){lb_go_on = true;} + } + setting.isValid = false; + if(lb_go_on) + { + if(val < setting.min || val > setting.max){ + if(val < setting.min && setting.onErrorMin){ + returnObj.errormsg= setting.onErrorMin; + } + if(val > setting.min && setting.onErrorMax){ + returnObj.errormsg= setting.onErrorMax; + } + } + else{ + setting.isValid = true; + } + } + break; + } + }, + + //对两个控件进行比较校验 + compareValid : function(returnObj) + { + var id = returnObj.id; + var setting = returnObj.setting; + var srcjo = $("#"+id); + var desjo = $("#"+setting.desID ); + var ls_dataType = setting.dataType; + + curvalue = srcjo.val(); + ls_data = desjo.val(); + if(ls_dataType=="number") + { + if(!isNaN(curvalue) && !isNaN(ls_data)){ + curvalue = parseFloat(curvalue); + ls_data = parseFloat(ls_data); + } + else{ + return; + } + } + if(ls_dataType=="date" || ls_dataType=="datetime") + { + var isok = false; + if(ls_dataType=="date"){isok = (isDate(curvalue) && isDate(ls_data))}; + if(ls_dataType=="datetime"){isok = (isDateTime(curvalue) && isDateTime(ls_data))}; + if(isok){ + curvalue = new Date(curvalue); + ls_data = new Date(ls_data) + } + else{ + return; + } + } + + switch(setting.operateor) + { + case "=": + setting.isValid = (curvalue == ls_data); + break; + case "!=": + setting.isValid = (curvalue != ls_data); + break; + case ">": + setting.isValid = (curvalue > ls_data); + break; + case ">=": + setting.isValid = (curvalue >= ls_data); + break; + case "<": + setting.isValid = (curvalue < ls_data); + break; + case "<=": + setting.isValid = (curvalue <= ls_data); + break; + default : + setting.isValid = false; + break; + } + }, + + //定位漂浮层 + localTooltip : function(e) + { + e = e || window.event; + var mouseX = e.pageX || (e.clientX ? e.clientX + document.body.scrollLeft : 0); + var mouseY = e.pageY || (e.clientY ? e.clientY + document.body.scrollTop : 0); + $("#fvtt").css({"top":(mouseY+2)+"px","left":(mouseX-40)+"px"}); + }, + + reloadAutoTip : function(validatorGroup) + { + if(validatorGroup == undefined) validatorGroup = "1"; + var initConfig = $('body').data(validatorGroup); + $.each(initConfig.validObjects,function() + { + if(initConfig.autoTip && !initConfig.tidyMode) + { + //获取层的ID、相对定位控件的ID和坐标 + var setting = this.settings[0]; + var relativeID = "#"+setting.relativeID; + var offset = $(relativeID ).offset(); + var y = offset.top; + var x = $(relativeID ).width() + offset.left; + $("#"+setting.tipID).parent().show().css({left: x+"px", top: y+"px"}); + } + }); + } +}; + +//每个校验控件必须初始化的 +$.fn.formValidator = function(cs) +{ + var setting = + { + validatorGroup : "1", + empty :false, + autoModify : false, + onShow :"请输入内容", + onFocus: "请输入内容", + onCorrect: "输入正确", + onEmpty: "输入内容为空", + defaultValue : null, + bind : true, + ajax : false, + validateType : "InitValidator", + tipCss : + { + "left" : "10px", + "top" : "1px", + "height" : "20px", + "width":"250px" + }, + triggerEvent:"blur", + forceValid : false, + tipID : null, + relativeID : null, + index : 0 + }; + + //获取该校验组的全局配置信息 + cs = cs || {}; + if(cs.validatorGroup == undefined){cs.validatorGroup = "1"}; + + var initConfig = $('body').data(cs.validatorGroup); + + //校验索引号,和总记录数 + initConfig.validCount += 1; + + //如果为精简模式,tipCss要重新设置初始值 + if(initConfig.tidyMode){setting.tipCss = {"left" : "2px","width":"22px","height":"22px","display":"none"}}; + + //弹出消息提示模式,自动修复错误 + if(initConfig.alertMessage){setting.autoModify=true}; + + //先合并整个配置(深度拷贝) + $.extend(true,setting, cs); + + return this.each(function(e) + { + //记录该控件的校验顺序号和校验组号 + this.validatorIndex = initConfig.validCount - 1; + this.validatorGroup = cs.validatorGroup; + var jqobj = $(this); + //自动形成TIP + var setting_temp = {}; + $.extend(true,setting_temp, setting); + var tip = setting_temp.tipID ? setting_temp.tipID : this.id+"Tip"; + if(initConfig.autoTip) + { + if(!initConfig.tidyMode) + { + //获取层的ID、相对定位控件的ID和坐标 + if($("body [id="+tip+"]").length==0) + { + var relativeID = setting_temp.relativeID ? setting_temp.relativeID : this.id; + var offset = $("#"+relativeID ).position(); + var y = offset.top; + var x = $("#"+relativeID ).width() + offset.left; + var formValidateTip = $("
    "); + if(initConfig.inIframe){formValidateTip.hide();} + formValidateTip.appendTo($("body")).css({left: x+"px", top: y+"px"}).prepend($('
    ').css(setting_temp.tipCss)); + setting.relativeID = relativeID ; + } + } + else + { + jqobj.showTooltips(); + } + } + //每个控件都要保存这个配置信息、为了取数方便,冗余一份控件总体配置到控件上 + setting.tipID = tip; + $.formValidator.appendValid(this.id,setting); + + //保存控件ID + if($.inArray(jqobj,initConfig.validObjects) == -1) + { + if (setting_temp.ajax) { + var ajax = initConfig.ajaxObjects; + initConfig.ajaxObjects = ajax + (ajax != "" ? ",#" : "#") + this.id; + } + initConfig.validObjects.push(this); + } + + //初始化显示信息 + if(!initConfig.alertMessage){ + $.formValidator.setTipState(this,"onShow",setting.onShow); + } + + var srcTag = this.tagName.toLowerCase(); + var stype = this.type; + var defaultval = setting.defaultValue; + //处理默认值 + if(defaultval){ + jqobj.val(defaultval); + } + + if(srcTag == "input" || srcTag=="textarea") + { + //注册获得焦点的事件。改变提示对象的文字和样式,保存原值 + jqobj.focus(function() + { + if(!initConfig.alertMessage){ + //保存原来的状态 + var tipjq = $("#"+tip); + this.lastshowclass = tipjq.attr("class"); + this.lastshowmsg = tipjq.html(); + $.formValidator.setTipState(this,"onFocus",setting.onFocus); + } + if (stype == "password" || stype == "text" || stype == "textarea" || stype == "file") { + this.validValueOld = jqobj.val(); + } + }); + //注册失去焦点的事件。进行校验,改变提示对象的文字和样式;出错就提示处理 + jqobj.bind(setting.triggerEvent, function(){ + var settings = this.settings; + var returnObj = $.formValidator.oneIsValid(this.id); + if(returnObj==null){return;} + if(returnObj.ajax >= 0) + { + $.formValidator.showAjaxMessage(returnObj); + } + else + { + var showmsg = $.formValidator.showMessage(returnObj); + if(!returnObj.isValid) + { + //自动修正错误 + var auto = setting.autoModify && (this.type=="text" || this.type=="textarea" || this.type=="file"); + if(auto) + { + $(this).val(this.validValueOld); + if(!initConfig.alertMessage){$.formValidator.setTipState(this,"onShow",setting.onShow)}; + } + else + { + if(initConfig.forceValid || setting.forceValid){ + alert(showmsg);this.focus(); + } + } + } + } + }); + } + else if (srcTag == "select") + { + jqobj.bind({ + //获得焦点 + focus: function(){ + if (!initConfig.alertMessage) { + $.formValidator.setTipState(this, "onFocus", setting.onFocus) + }; + }, + //失去焦点 + blur: function(){$(this).trigger("change")}, + //选择项目后触发 + change: function(){ + var returnObj = $.formValidator.oneIsValid(this.id); + if(returnObj==null){return;} + if ( returnObj.ajax >= 0){ + $.formValidator.showAjaxMessage(returnObj); + }else{ + $.formValidator.showMessage(returnObj); + } + } + }); + } + }); +}; + +$.fn.inputValidator = function(controlOptions) +{ + var settings = + { + isValid : false, + min : 0, + max : 99999999999999, + type : "size", + onError:"输入错误", + validateType:"InputValidator", + empty:{leftEmpty:true,rightEmpty:true,leftEmptyError:null,rightEmptyError:null} + }; + controlOptions = controlOptions || {}; + $.extend(true, settings, controlOptions); + return this.each(function(){ + $.formValidator.appendValid(this.id,settings); + }); +}; + +$.fn.compareValidator = function(controlOptions) +{ + var settings = + { + isValid : false, + desID : "", + operateor :"=", + onError:"输入错误", + validateType:"CompareValidator" + }; + controlOptions = controlOptions || {}; + $.extend(true, settings, controlOptions); + return this.each(function(){ + $.formValidator.appendValid(this.id,settings); + }); +}; + +$.fn.regexValidator = function(controlOptions) +{ + var settings = + { + isValid : false, + regExp : "", + param : "i", + dataType : "string", + compareType : "||", + onError:"输入的格式不正确", + validateType:"RegexValidator" + }; + controlOptions = controlOptions || {}; + $.extend(true, settings, controlOptions); + return this.each(function(){ + $.formValidator.appendValid(this.id,settings); + }); +}; + +$.fn.functionValidator = function(controlOptions) +{ + var settings = + { + isValid : true, + fun : function(){this.isValid = true;}, + validateType:"FunctionValidator", + onError:"输入错误" + }; + controlOptions = controlOptions || {}; + $.extend(true, settings, controlOptions); + return this.each(function(){ + $.formValidator.appendValid(this.id,settings); + }); +}; + +$.fn.ajaxValidator = function(controlOptions) +{ + var settings = + { + type : "GET", + url : "", + dataType : "html", + timeout : 100000, + data : null, + async : true, + cache : false, + beforeSend : function(){return true;}, + success : function(){return true;}, + complete : function(){}, + processData : true, + error : function(){}, + isValid : false, + lastValid : "", + buttons : null, + oneceValid : false, + randNumberName : "rand", + onError:"服务器校验没有通过", + onWait:"正在等待服务器返回数据", + ajaxExistsError:"前面的校验尚未完成,请稍候...", + validateType:"AjaxValidator" + + }; + controlOptions = controlOptions || {}; + $.extend(true, settings, controlOptions); + return this.each(function() + { + var initConfig = $('body').data(this.validatorGroup); + var ajax = initConfig.ajaxObjects; + if((ajax+",").indexOf("#"+this.id+",") == -1) + { + initConfig.ajaxObjects = ajax + (ajax != "" ? ",#" : "#") + this.id; + } + this.validatorAjaxIndex = $.formValidator.appendValid(this.id,settings); + }); +}; + +//指定控件显示通过或不通过样式 +$.fn.defaultPassed = function(onShow) +{ + return this.each(function() + { + var settings = this.settings; + settings[0].defaultPassed = true; + for ( var i = 1 ; i < settings.length ; i ++ ) + { + settings[i].isValid = true; + if(!$('body').data(settings[0].validatorGroup).alertMessage){ + var ls_style = onShow ? "onShow" : "onCorrect"; + $.formValidator.setTipState(this,ls_style,settings[0].onCorrect); + } + } + }); +}; + +//指定控件不参加校验 +$.fn.unFormValidator = function(unbind) +{ + return this.each(function() + { + this.settings[0].bind = !unbind; + if(unbind){ + $("#"+this.settings[0].tipID).hide(); + }else{ + $("#"+this.settings[0].tipID).show(); + } + }); +}; + +//显示漂浮显示层 +$.fn.showTooltips = function() +{ + if($("body [id=fvtt]").length==0){ + fvtt = $("
    "); + $("body").append(fvtt); + fvtt.before(""); + + } + return this.each(function() + { + jqobj = $(this); + s = $(""); + b = $(""); + this.tooltip = $("").append(s).append(b).css({"filter":"alpha(opacity:95)","KHTMLOpacity":"0.95","MozOpacity":"0.95","opacity":"0.95"}); + //注册事件 + jqobj.bind({ + mouseover : function(e){ + $("#fvtt").append(this.tooltip); + $("#fv_content").html(this.Tooltip); + $.formValidator.localTooltip(e); + }, + mouseout : function(){ + $("#fvtt").empty(); + }, + mousemove: function(e){ + $("#fv_content").html(this.Tooltip); + $.formValidator.localTooltip(e); + } + }); + }); +} +})(jQuery); + + +// formValidatorRegex.js +var regexEnum = +{ + intege:"^-?[1-9]\\d*$", //整数 + intege1:"^[1-9]\\d*$", //正整数 + intege2:"^-[1-9]\\d*$", //负整数 + num:"^([+-]?)\\d*\\.?\\d+$", //数字 + num1:"^[1-9]\\d*|0$", //正数(正整数 + 0) + num2:"^-[1-9]\\d*|0$", //负数(负整数 + 0) + decmal:"^([+-]?)\\d*\\.\\d+$", //浮点数 + decmal1:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*$",   //正浮点数 + decmal2:"^-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*)$",  //负浮点数 + decmal3:"^-?([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0)$",  //浮点数 + decmal4:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0$",   //非负浮点数(正浮点数 + 0) + decmal5:"^(-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*))|0?.0+|0$",  //非正浮点数(负浮点数 + 0) + + email:"^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$", //邮件 + color:"^[a-fA-F0-9]{6}$", //颜色 + url:"^http[s]?:\\/\\/([\\w-]+\\.)+[\\w-]+([\\w-./?%&=]*)?$", //url + chinese:"^[\\u4E00-\\u9FA5\\uF900-\\uFA2D]+$", //仅中文 + ascii:"^[\\x00-\\xFF]+$", //仅ACSII字符 + zipcode:"^\\d{6}$", //邮编 + mobile:"^(13|15|18|17|16|19)[0-9]{9}$", //手机 + ip4:"^(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)$", //ip地址 + notempty:"^\\S+$", //非空 + picture:"(.*)\\.(jpg|bmp|gif|ico|pcx|jpeg|tif|png|raw|tga)$", //图片 + rar:"(.*)\\.(rar|zip|7zip|tgz)$", //压缩文件 + date:"^\\d{4}(\\-|\\/|\.)\\d{1,2}\\1\\d{1,2}$", //日期 + qq:"^[1-9]*[1-9][0-9]*$", //QQ号码 + tel:"^(([0\\+]\\d{2,3}-)?(0\\d{2,3})-)?(\\d{7,8})(-(\\d{3,}))?$", //电话号码的函数(包括验证国内区号,国际区号,分机号) + username:"^\\w+$", //用来用户注册。匹配由数字、26个英文字母或者下划线组成的字符串 + letter:"^[A-Za-z]+$", //字母 + letter_u:"^[A-Z]+$", //大写字母 + letter_l:"^[a-z]+$", //小写字母 + idcard:"^[1-9]([0-9]{14}|[0-9]{17})$", //身份证 + myusername:"^[\\w\\u4E00-\\u9FA5\\uF900-\\uFA2D]+$" //仅中文 +} + +var aCity={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"} + +function isCardID(sId){ + var iSum=0 ; + var info="" ; + if(!/^\d{17}(\d|x)$/i.test(sId)) return "你输入的身份证长度或格式错误"; + sId=sId.replace(/x$/i,"a"); + if(aCity[parseInt(sId.substr(0,2))]==null) return "你的身份证地区非法"; + sBirthday=sId.substr(6,4)+"-"+Number(sId.substr(10,2))+"-"+Number(sId.substr(12,2)); + var d=new Date(sBirthday.replace(/-/g,"/")) ; + if(sBirthday!=(d.getFullYear()+"-"+ (d.getMonth()+1) + "-" + d.getDate()))return "身份证上的出生日期非法"; + for(var i = 17;i>=0;i --) iSum += (Math.pow(2,i) % 11) * parseInt(sId.charAt(17 - i),11) ; + if(iSum%11!=1) return "你输入的身份证号非法"; + return true;//aCity[parseInt(sId.substr(0,2))]+","+sBirthday+","+(sId.substr(16,1)%2?"男":"女") +} + + + + +//短时间,形如 (13:04:06) +function isTime(str) +{ + var a = str.match(/^(\d{1,2})(:)?(\d{1,2})\2(\d{1,2})$/); + if (a == null) {return false} + if (a[1]>24 || a[3]>60 || a[4]>60) + { + return false; + } + return true; +} + +//短日期,形如 (2003-12-05) +function isDate(str) +{ + var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); + if(r==null)return false; + var d= new Date(r[1], r[3]-1, r[4]); + return (d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]); +} + +//长时间,形如 (2003-12-05 13:04:06) +function isDateTime(str) +{ + var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/; + var r = str.match(reg); + if(r==null) return false; + var d= new Date(r[1], r[3]-1,r[4],r[5],r[6],r[7]); + return (d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]&&d.getHours()==r[5]&&d.getMinutes()==r[6]&&d.getSeconds()==r[7]); +} \ No newline at end of file diff --git a/js/hammer.min.js b/js/hammer.min.js new file mode 100644 index 0000000..8e2f9b8 --- /dev/null +++ b/js/hammer.min.js @@ -0,0 +1,7 @@ +/*! Hammer.JS - v2.0.4 - 2014-09-28 + * http://hammerjs.github.io/ + * + * Copyright (c) 2014 Jorik Tangelder; + * Licensed under the MIT license */ +!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;eh&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;af?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;eh&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;af?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance480?480:w; + w=w<320?320:w; + el.style.fontSize = (100 * (w / 1080)).toFixed(3) + 'px'; + //1rem相当于1080的图中的100px,最小320px,最大480px,超过这个尺寸后rem与px的换算比例不再变化 + + } + if (!doc.addEventListener) return; + setSize(); + win.addEventListener('resize', setSize, false); + win.addEventListener('pageshow', function(e) { + if (e.persisted) { + setSize(); + } + }, false); +})(document, window); \ No newline at end of file diff --git a/js/histcookie.js b/js/histcookie.js new file mode 100644 index 0000000..f67c646 --- /dev/null +++ b/js/histcookie.js @@ -0,0 +1,15 @@ +function setCookie(name, value, ihour) { + var iH = ihour || 1; + var exp = new Date; + exp.setTime(exp.getTime() + iH * 60 * 60 * 1000); + document.cookie = name + ("=" + escape(value) + ";expires=" + exp.toGMTString() + ";path=/;"); +} + +function getCookie(name) { + var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); + if (arr != null) { + return unescape(arr[2]); + } + return null; +} + diff --git a/js/history.js b/js/history.js new file mode 100644 index 0000000..b83686d --- /dev/null +++ b/js/history.js @@ -0,0 +1,43 @@ +var timeout=30;var jNum=8;function AddHistory(){var Str,ShowStr,iArr,TemStr,sArr,jArr;Str=getCookie("history");if(Str==null){Str='';} +if(typeof(play_vid)!="undefined"){if(playtit==''){playtit="继续播放";} +TemStr=play_vid+'$'+infotit+'$'+playtit+'$'+infourl+'$'+window.location.href+'$$';if(Str!=""||Str!="History="){iArr=Str.replace("History=","").split("$$");var n=0 +for(var i=0;i没有观看历史';}else{sArr=ShowStr.split("$$");ShowStr='';var curl=window.location.href.split('/')[4];var tg='target="_blank"';if(!isNaN(curl))tg='target="_self"';for(var i=0;i13){jArr1[1]=jArr1[1].substring(0,10)+".."} +if(jArr[2].length>8){jArr1[2]=jArr1[2].substring(0,8)+".."} +ShowStr+='
  • \u5220\u9664'+jArr1[1]+'['+jArr1[2]+']

  • ';}} +document.getElementById("history").innerHTML=ShowStr;} +function DelHistory(i){var Str,iArr,TemStr,sArr,jArr,ShowStr;TemStr='';Str=getCookie("history");if(Str!=null){if(i==-1){if(confirm("确定清空吗?")){document.getElementById("history").innerHTML='
  • 没有观看历史
  • ';setCookie("history","History=");}}else{iArr=Str.replace("History=","").split("$$");for(var j=0;j13){jArr1[1]=jArr1[1].substring(0,10)+".."} +if(jArr[2].length>8){jArr1[2]=jArr1[2].substring(0,8)+".."} +ShowStr+='
  • \u5220\u9664'+jArr1[1]+'['+jArr1[2]+']

  • ';} +document.getElementById("history").innerHTML=ShowStr;TemStr="History="+TemStr;setCookie("history",TemStr,timeout);}}} +function add_zero(temp){if(temp<10){return "0"+temp;}else{return temp;}} +function showTop() +{document.getElementById("Tab_top_0").className="history";document.getElementById("List_top_0").style.display="";} +function hideTop() +{var CurTabObj=document.getElementById("Tab_top_0");var CurListObj=document.getElementById("List_top_0");CurTabObj.className="history";CurListObj.style.display="none";} +function switchTab(identify,index,count,cnon,cnout){try{for(i=1;i\u6CA1\u6709\u627E\u5230\u4EFB\u4F55\u5F71\u7247\uFF0C\u8BF7\u5C1D\u8BD5\u4FEE\u6539\u5173\u952E\u8BCD");}else{var tmpstr="";jQuery.each(json,function(i,obj){tmpstr+="
  • "+obj.title.replace(jQuery("#searchword").val(),""+jQuery("#searchword").val()+"")+"

  • ";});jQuery(".showresult").html(tmpstr);} +jQuery(".showresult").slideDown();});}else{jQuery(".showresult").html("");jQuery(".showresult").slideUp();}} +function endfun(){jQuery("#searchword").focus(function(){if(jQuery(".showresult").html())jQuery(".showresult").slideDown();});jQuery("#searchword").blur(function(){jQuery(".showresult").delay(200).slideUp();});jQuery("#dykw").val(' ');} +function killErrors(){return true;} +window.onerror=killErrors; \ No newline at end of file diff --git a/js/home.js b/js/home.js new file mode 100644 index 0000000..04136e7 --- /dev/null +++ b/js/home.js @@ -0,0 +1,912 @@ + +String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); } +String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } +var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i=0x0001)&&(c<=0x007F)){out+=str.charAt(i)}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x1F)<<6)|(char2&0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x0F)<<12)|((char2&0x3F)<<6)|((char3&0x3F)<<0));break}}return out} + +var MAC={ + 'Url': document.URL, + 'Title': document.title, + 'UserAgent' : function(){ + var ua = navigator.userAgent;//navigator.appVersion + return { + 'mobile': !!ua.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 + 'ios': !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 + 'android': ua.indexOf('Android') > -1 || ua.indexOf('Linux') > -1, //android终端或者uc浏览器 + 'iPhone': ua.indexOf('iPhone') > -1 || ua.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器 + 'iPad': ua.indexOf('iPad') > -1, //是否iPad + 'trident': ua.indexOf('Trident') > -1, //IE内核 + 'presto': ua.indexOf('Presto') > -1, //opera内核 + 'webKit': ua.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 + 'gecko': ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') == -1, //火狐内核 + 'weixin': ua.indexOf('MicroMessenger') > -1 //是否微信 ua.match(/MicroMessenger/i) == "micromessenger", + }; + }(), + 'Copy': function(s){ + if (window.clipboardData){ window.clipboardData.setData("Text",s); } + else{ + if( $("#mac_flash_copy").get(0) ==undefined ){ $('
    '); } else {$('#mac_flash_copy').html(''); } + $('#mac_flash_copy').html(''); + } + MAC.Pop.Msg(100,20,'复制成功',1000); + }, + 'Home': function(o,u){ + try{ + o.style.behavior='url(#default#homepage)'; o.setHomePage(u); + } + catch(e){ + if(window.netscape){ + try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");} + catch(e){ MAC.Pop.Msg(150,40,'此操作被浏览器拒绝!请手动设置',1000); } + var moz = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); + moz.setCharPref('browser.startup.homepage',u); + } + } + }, + 'Fav': function(u,s){ + try{ window.external.addFavorite(u, s);} + catch (e){ + try{window.sidebar.addPanel(s, u, "");}catch (e){ MAC.Pop.Msg(150,40,'加入收藏出错,请使用键盘Ctrl+D进行添加',1000); } + } + }, + 'Open': function(u,w,h){ + window.open(u,'macopen1','toolbars=0, scrollbars=0, location=0, statusbars=0,menubars=0,resizable=yes,width='+w+',height='+h+''); + }, + 'Cookie': { + 'Set': function(name,value,days){ + var exp = new Date(); + exp.setTime(exp.getTime() + days*24*60*60*1000); + var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); + document.cookie=name+"="+encodeURIComponent(value)+";path=/;expires="+exp.toUTCString(); + }, + 'Get': function(name){ + var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); + if(arr != null){ return decodeURIComponent(arr[2]); return null; } + }, + 'Del': function(name){ + var exp = new Date(); + exp.setTime(exp.getTime()-1); + var cval = this.Get(name); + if(cval != null){ document.cookie = name+"="+encodeURIComponent(cval)+";path=/;expires="+exp.toUTCString(); } + } + }, + 'GoBack':function(){ + var ldghost=document.domain; + if(document.referrer.indexOf(ldghost)>0) { + history.back(); + } + else{ + window.location ="//"+ldghost; + } + }, + 'Adaptive':function(){ + if(maccms.mob_status=='1' && maccms.url != maccms.wapurl){ + if(document.domain ==maccms.url && MAC.UserAgent.mobile){ + location.href = location.href.replace(maccms.url,maccms.wapurl); + } + else if(document.domain ==maccms.wapurl && !MAC.UserAgent.mobile){ + location.href = location.href.replace(maccms.wapurl,maccms.url); + } + } + }, + 'CheckBox':{ + 'All':function(n){ + $("input[name='"+n+"']").each(function() { + this.checked = true; + }); + }, + 'Other':function(n){ + $("input[name='"+n+"']").each(function() { + this.checked = !this.checked; + }); + }, + 'Count':function(n){ + var res=0; + $("input[name='"+n+"']").each(function() { + if(this.checked){ res++; } + }); + return res; + }, + 'Ids':function(n){ + var res=[]; + $("input[name='"+n+"']").each(function() { + if(this.checked){ res.push(this.value); } + }); + return res.join(","); + } + }, + 'Ajax':function(url,type,dataType,data,sfun,efun,cfun){ + type=type||'get'; + dataType=dataType||'json'; + data=data||''; + efun=efun||''; + cfun=cfun||''; + + $.ajax({ + url:url, + type:type, + dataType:dataType, + data:data, + timeout: 5000, + beforeSend:function(XHR){ + + }, + error:function(XHR,textStatus,errorThrown){ + if(efun) efun(XHR,textStatus,errorThrown); + }, + success:function(data){ + sfun(data); + }, + complete:function(XHR, TS){ + if(cfun) cfun(XHR, TS); + } + }) + }, + 'Qrcode':{ + 'Init':function(){ + $('.mac_qrcode').attr('src','//api.maccms.com/qrcode/?w=150&h=150&url=' + MAC.Url); + } + }, + 'Shorten': { + 'Init':function(){ + if($('.mac_shorten').length==0){ + return; + } + MAC.Shorten.Get(); + }, + 'Get':function(url,call){ + url=url||location.href; + MAC.Ajax('//api.maccms.com/shorten/?callback=callback&url='+ encodeURIComponent(url),'get','jsonp','',function(r){ + if (r.code == 1) { + if($('.mac_shorten').length>0) { + $('.mac_shorten').val(r.data.url_short); + $('.mac_shorten').html(r.data.url_short); + } + if(call){ + call(r); + } + + } + }); + } + }, + 'Image':{ + 'Lazyload':{ + 'Show': function(){ + try { $("img.lazy").lazyload(); }catch(e){}; + }, + 'Box': function($id){ + $("img.lazy").lazyload({ + container: $("#"+$id) + }); + } + } + }, + 'Verify': { + 'Init': function(){ + MAC.Verify.Focus(); + MAC.Verify.Click(); + }, + 'Focus': function(){//验证码框焦点 + $('body').on("focus", ".mac_verify", function(){ + $(this).removeClass('mac_verify').after(MAC.Verify.Show()); + $(this).unbind(); + }); + }, + 'Click': function(){//点击刷新 + $('body').on('click', 'img.mac_verify_img', function(){ + $(this).attr('src', maccms.path +'/index.php/verify/index.html?r='+Math.random()); + }); + }, + 'Refresh':function(){ + $('.mac_verify_img').attr('src', maccms.path +'/index.php/verify/index.html?r='+Math.random()); + }, + 'Show':function(){ + return ''; + } + }, + 'PageGo':{ + 'Init':function() { + $('.mac_page_go').click(function () { + var that =$(this); + var url = that.attr('data-url'); + var total = parseInt(that.attr('data-total')); + var sp = that.attr('data-sp'); + var page= parseInt($('#page').val()); + + if(page>0&&(page<=total)){ + url=url.replace(sp + 'PAGELINK',sp + page).replace('PAGELINK',page); + location.href=url; + } + return false; + }); + } + }, + 'Hits': { + 'Init':function() { + if($('.mac_hits').length==0){ + return; + } + var $that = $(".mac_hits"); + + MAC.Ajax(maccms.path + '/index.php/ajax/hits?mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type=update','get','json','',function(r){ + if (r.code == 1) { + $(".mac_hits").each(function(i){ + $type = $(".mac_hits").eq(i).attr('data-type'); + if($type != 'insert'){ + $('.'+$type).html(eval('(r.data.' + $type + ')')); + } + }); + } + }); + + } + }, + 'Score': { + 'Init':function(){ + if($('.mac_score').length==0){ + return; + } + $('body').on('click', '.score_btn', function(e){ + MAC.Score.Submit(); + }); + + MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+ $('.mac_score').attr('data-mid') +'&id=' +$('.mac_score').attr('data-id'),'post','json','',function(r){ + MAC.Score.View(r); + },function(){ + $(".mac_score").html('评分加载失败'); + }); + + }, + 'Submit':function(){ + var $s = $('.mac_score').find("input[name='score']").val(); + MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+$('.mac_score').attr('data-mid')+'&id='+$('.mac_score').attr('data-id') + '&score='+ $s,'get','json','',function(r){ + MAC.Pop.Msg(100,20,r.msg,1000); + if(r.code==1){ + MAC.Score.View(r); + } + }); + }, + 'View':function(r){ + $(".rating"+Math.floor(r.data.score)).attr('checked',true); + $(".score_num").text(r.data.score_num); + $(".score_all").text(r.data.score_all); + $(".score_pjf").text(r.data.score); + } + }, + 'Star': { + 'Init':function(){ + if($('.mac_star').length==0){ + return; + } + + $('.mac_star').raty({ + starType: 'i', + number: 5, + numberMax : 5, + half: true, + score : function(){ + return $(this).attr('data-score'); + }, + click: function(score, evt) { + + MAC.Ajax(maccms.path+'/index.php/ajax/score?mid='+$('.mac_star').attr('data-mid')+'&id='+$('.mac_star').attr('data-id')+'&score='+(score*2),'get','json','',function(r){ + if(json.status == 1){ + $('.star_tips').html(r.data.score); + }else{ + $('.star_box').attr('title', r.msg); + } + },function(){ + $('.star_box').attr('title', '网络异常!'); + }); + + } + }); + } + }, + 'Digg': { + 'Init':function(){ + $('body').on('click', '.digg_link', function(e){ + var $that = $(this); + if($that.attr("data-id")){ + + MAC.Ajax(maccms.path + '/index.php/ajax/digg.html?mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type='+$that.attr("data-type"),'get','json','',function(r){ + $that.addClass('disabled'); + if(r.code == 1){ + if($that.attr("data-type")=='up'){ + $that.find('.digg_num').html(r.data.up); + } + else{ + $that.find('.digg_num').html(r.data.down); + } + } + else{ + $that.attr('title', r.msg); + } + }); + + } + }); + } + }, + 'Gbook':{ + 'Login':0, + 'Verify':0, + 'Init':function(){ + $('body').on('keyup', '.gbook_content', function(e){ + MAC.Remaining($(this),200,'.gbook_remaining') + }); + $('body').on('focus', '.gbook_content', function(e){ + if(MAC.Gbook.Login==1 && MAC.User.IsLogin!=1){ + MAC.User.Login(); + } + }); + $('body').on('click', '.gbook_submit', function(e){ + MAC.Gbook.Submit(); + }); + }, + 'Show':function($page){ + MAC.Ajax(maccms.path+'/index.php/gbook/index?page='+$page,'post','json','',function(r){ + $(".mac_gbook_box").html(r); + },function(){ + $(".mac_gbook_box").html('留言加载失败,请刷新...'); + }); + }, + 'Submit':function(){ + if($(".gbook_content").val() == ''){ + MAC.Pop.Msg(100,20,'请输入您的留言!',1000); + return false; + } + MAC.Ajax(maccms.path + '/index.php/gbook/saveData','post','json',$('.gbook_form').serialize(),function(r){ + MAC.Pop.Msg(100,20,r.msg,1000); + if(r.code == 1){ + location.reload(); + } + else{ + if(MAC.Gbook.Verify==1){ + MAC.Verify.Refresh(); + } + } + }); + }, + 'Report':function(name,id){ + MAC.Pop.Show(400,300,'数据报错',maccms.path+'/index.php/gbook/report.html?id='+id+'&name='+ encodeURIComponent(name),function(r){ + + }); + } + }, + 'Search':{ + 'Init':function(){ + $('.mac_search').click(function(){ + var that=$(this); + var url = that.attr('data-href') ? that.attr('data-href') : maccms.path + '/index.php/vod/search.html'; + location.href = url + '?wd='+ encodeURIComponent($("#wd").val()); + }); + }, + 'Submit':function(){ + + return false; + } + }, + 'Suggest':{ + 'Init':function($obj,$mid,$jumpurl){ + try { + $($obj).autocomplete(maccms.path + '/index.php/ajax/suggest?mid=' + $mid, { + inputClass: "mac_input", + resultsClass: "mac_results", + loadingClass: "mac_loading", + width: 175, scrollHeight: 300, minChars: 1, matchSubset: 0, + cacheLength: 10, multiple: false, matchContains: true, autoFill: false, + dataType: "json", + parse: function (r) { + if (r.code == 1) { + var parsed = []; + $.each(r['list'], function (index, row) { + row.url = r.url; + parsed[index] = { + data: row + }; + }); + return parsed; + } else { + return {data: ''}; + } + }, + formatItem: function (row, i, max) { + return row.name; + }, + formatResult: function (row, i, max) { + return row.text; + } + }).result(function (event, data, formatted) { + $($obj).val(data.name); + location.href = data.url.replace('mac_wd', encodeURIComponent(data.name)); + }); + } + catch(e){} + } + }, + 'History': { + 'BoxShow':0, + 'Limit':10, + 'Days':7, + 'Json':'', + 'Init':function(){ + if($('.mac_history').length ==0){ + return; + } + + $('.mac_history').hover(function(e){ + $('.mac_history_box').show(); + }, function(){ + $('.mac_history_box').hover(function(){ + MAC.History.BoxShow=1; + }, function(){ + MAC.History.BoxShow=0; + $('.mac_history_box').hide(); + }); + }); + + var jsondata = []; + if(this.Json){ + jsondata = this.Json; + }else{ + var jsonstr = MAC.Cookie.Get('mac_history'); + if(jsonstr != undefined){ + jsondata = eval(jsonstr); + } + } + + html = '
    '; + html +='
    清空
    '; + + if(jsondata.length > 0){ + for($i=0; $i'+jsondata[$i].name+''; + } + }else{ + html +='
    暂无浏览记录
    '; + } + html += '
    '; + + $('.mac_history').after(html); + var h = $('.mac_history').height(); + var position = $('.mac_history').position(); + + + + if($(".mac_history_set").attr('data-name')){ + var $that = $(".mac_history_set"); + MAC.History.Set($that.attr('data-name'),$that.attr('data-link'),$that.attr('data-pic')); + } + }, + 'Set':function(name,link,pic){ + if(!link){ link = document.URL; } + var jsondata = MAC.Cookie.Get('mac_history'); + + if(jsondata != undefined){ + this.Json = eval(jsondata); + + for($i=0;$i已清空观看记录。'); + }, + }, + + 'Ulog':{ + 'Init':function(){ + MAC.Ulog.Set(); + MAC.Ulog.Click(); + + }, + 'Get':function(type,page,limit,call){ + MAC.Ajax(maccms.path+'/index.php/user/ajax_ulog/?ac=list&type='+type+'&page='+page+'&limit='+limit,'get','json','',call); + }, + 'Set':function(){ + if($(".mac_ulog_set").attr('data-mid')){ + var $that = $(".mac_ulog_set"); + $.get(maccms.path+'/index.php/user/ajax_ulog/?ac=set&mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&sid='+$that.attr("data-sid")+'&nid='+$that.attr("data-nid")+'&type='+$that.attr("data-type")); + } + }, + 'Click':function(){ + $('body').on('click', 'a.mac_ulog', function(e){ + + //是否需要验证登录 + if(MAC.User.IsLogin == 0){ + MAC.User.Login(); + return; + } + + var $that = $(this); + if($that.attr("data-id")){ + MAC.Ajax(maccms.path+'/index.php/user/ajax_ulog/?ac=set&mid='+$that.attr("data-mid")+'&id='+$that.attr("data-id")+'&type='+$that.attr("data-type"),'get','json','',function(r){ + MAC.Pop.Msg(100,20,r.msg,1000); + if(r.code == 1){ + $that.addClass('disabled'); + }else{ + $that.attr('title', r.msg); + } + }); + } + }); + } + }, + 'User':{ + 'BoxShow':0, + 'IsLogin':0, + 'UserId':'', + 'UserName':'', + 'GroupId':'', + 'GroupName':'', + 'Portrait':'', + 'Init':function(){ + if($('.mac_user').length >0){ + $('body').on('click', '.mac_user', function(e){ + MAC.User.Login(); + }); + + $('.mac_user').hover(function(e){ + $('.mac_user_box').show(); + }, function(){ + $('.mac_user_box').hover(function(){ + MAC.User.BoxShow = 1; + }, function(){ + MAC.User.BoxShow = 0; + $('.mac_user_box').hide(); + }); + }); + } + + if(MAC.Cookie.Get('user_id') !=undefined && MAC.Cookie.Get('user_id')!=''){ + var url = maccms.path + '/index.php/user'; + MAC.User.UserId = MAC.Cookie.Get('user_id'); + MAC.User.UserName = MAC.Cookie.Get('user_name'); + MAC.User.GroupId = MAC.Cookie.Get('group_id'); + MAC.User.GroupName = MAC.Cookie.Get('group_name'); + MAC.User.Portrait = MAC.Cookie.Get('user_portrait'); + MAC.User.IsLogin = 1; + + if($('.mac_user').length >0) { + if ($('.mac_user').prop("outerHTML").substr(0, 2) == ''+ name +''); + } + + var html = '