Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.noConflict();
- jQuery(document).ready(function($){
- $('a[href=#top], a[href=#ipboard_body]').click(function(){
- $('html, body').animate({scrollTop:0}, 400);
- return false;
- });
- $(".forum_name").hover(function() {
- $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
- .animate({left: "0", opacity:1}, "fast")
- .css("display","block")
- }, function() {
- $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
- .animate({left: "10", opacity: 0}, "fast", function(){
- $(this).hide();
- })
- });
- $('#topicViewBasic').click(function(){
- $(this).addClass("active");
- $('#topicViewRegular').removeClass("active");
- $("#customize_topic").addClass("basicTopicView");
- $.cookie('ctv','basic',{ expires: 365, path: '/'});
- return false;
- });
- $('#topicViewRegular').click(function(){
- $(this).addClass("active");
- $('#topicViewBasic').removeClass("active");
- $("#customize_topic").removeClass("basicTopicView");
- $.cookie('ctv',null,{ expires: -1, path: '/'});
- return false;
- });
- if ( ($.cookie('ctv') != null)) {
- $("#customize_topic").addClass("basicTopicView");
- $("#topicViewBasic").addClass("active");
- }
- else{
- $("#topicViewRegular").addClass("active");
- }
- var customElements = ".thead-dark, .istatwrap > ul > li > span, #shoutbox.front .head ,#panel, .tfoot, .upper, .thead";
- var customElements2 = "#header, #header-responsive";
- var customText = ".post_block h3, .post_block h3 a";
- $('#colorpicker').ColorPicker({
- onSubmit: function(hsb, hex, rgb, el) {
- $(el).val(hex);
- $(el).ColorPickerHide();
- $(el).css("backgroundColor", "#" + hex);
- $(customElements).css("background-color", "#" + hex);
- $(customElements2).css("background", "linear-gradient(rgba(82, 25, 25, 0.45),rgba(249, 55, 55, 0.45),rgb(43, 25, 25)), url(../../../images/netpen/logo-bg.png)");
- $(customText).css("color", "#" + hex);
- $.cookie('customcolor',hex,{ expires: 365, path: '/'});
- },
- onBeforeShow: function () {
- $(this).ColorPickerSetColor(this.value);
- },
- onChange: function (hsb, hex, rgb) {
- $(customElements).css("background-color", "#" + hex);
- $(customElements2).css("background", "linear-gradient(rgba(82, 25, 25, 0.45),rgba(249, 55, 55, 0.45),rgb(43, 25, 25)), url(../../../images/netpen/logo-bg.png)");
- $(customText).css("color", "#" + hex);
- $.cookie('customcolor',hex,{ expires: 365, path: '/'});
- }
- })
- .bind('keyup', function(){
- $(this).ColorPickerSetColor(this.value);
- });
- if ( ($.cookie('customcolor') != null)) {
- $(customElements).css("background-color", "#" + $.cookie('customcolor'));
- $(customElements2).css("background", "linear-gradient(rgba(82, 25, 25, 0.45),rgba(249, 55, 55, 0.45),rgb(43, 25, 25)), url(../../../images/netpen/logo-bg.png)");
- $(customText).css("color", "#" + $.cookie('customcolor'));
- $("#colorpicker").val($.cookie('customcolor'));
- }
- else{
- $(customElements).css("background-color","#3a85ba");
- $(customElements2).css("background","#3a85ba");
- $(customText).css("color","#3a85ba");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement