-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
67 lines (67 loc) · 2.01 KB
/
footer.php
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
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
</div>
<?php if (!is_pjax()) { ?>
</div>
</div>
<script src="<?php $this->options->themeUrl('google_code_prettify.js'); ?>?version=20180316" data-no-instant></script>
<script src="<?php $this->options->themeUrl('instant_click_3.0.1.js'); ?>?version=20180316" data-no-instant></script>
<script src="<?php $this->options->themeUrl('sexful.js'); ?>?version=2018031613" data-no-instant></script>
<a id="scrollUp">Top</a>
<script>
/* 评论表情 */
$(function() {
var box = $("#smiliesbox"),
button = $("#smiliesbutton"),
a = null;
box.mouseover(function() {
clearTimeout(a);
a = null;
});
box.find("span").click(function() {
var b = $(this).attr("data-tag");
$("#textarea").insert(b);
button.mouseout();
});
button.on({
click:function() {
box.fadeIn();
},
mouseover:function() {
box.fadeIn();
},
mouseout:function() {
a = setTimeout(function() {
box.fadeOut();
clearTimeout(a);
a = null
},100);
}
});
$.fn.extend({
"insert": function(myValue) {
var $t = $(this)[0];
if (document.selection) {
this.focus();
sel = document.selection.createRange();
sel.text = myValue;
this.focus()
} else if ($t.selectionStart || $t.selectionStart == "0") {
var startPos = $t.selectionStart;
var endPos = $t.selectionEnd;
var scrollTop = $t.scrollTop;
$t.value = $t.value.substring(0, startPos) + myValue + $t.value.substring(endPos, $t.value.length);
this.focus();
$t.selectionStart = startPos + myValue.length;
$t.selectionEnd = startPos + myValue.length;
$t.scrollTop = scrollTop
} else {
this.value += myValue;
this.focus()
}
}
})
});
</script>
<span style="display: none;"><script type="text/javascript" data-no-instant>var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_5593802'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s96.cnzz.com/stat.php%3Fid%3D5593802' type='text/javascript'%3E%3C/script%3E"));</script></span>
</body>
</html>
<?php } ?>