Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. jQuery.noConflict();
  2.  
  3. jQuery(document).ready(function($){
  4.  
  5. $('a[href=#top], a[href=#ipboard_body]').click(function(){
  6. $('html, body').animate({scrollTop:0}, 400);
  7. return false;
  8. });
  9.  
  10. $(".forum_name").hover(function() {
  11. $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
  12. .animate({left: "0", opacity:1}, "fast")
  13. .css("display","block")
  14. }, function() {
  15. $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
  16. .animate({left: "10", opacity: 0}, "fast", function(){
  17. $(this).hide();
  18. })
  19. });
  20.  
  21. $('#topicViewBasic').click(function(){
  22. $(this).addClass("active");
  23. $('#topicViewRegular').removeClass("active");
  24. $("#customize_topic").addClass("basicTopicView");
  25. $.cookie('ctv','basic',{ expires: 365, path: '/'});
  26. return false;
  27. });
  28.  
  29. $('#topicViewRegular').click(function(){
  30. $(this).addClass("active");
  31. $('#topicViewBasic').removeClass("active");
  32. $("#customize_topic").removeClass("basicTopicView");
  33. $.cookie('ctv',null,{ expires: -1, path: '/'});
  34. return false;
  35. });
  36.  
  37. if ( ($.cookie('ctv') != null)) {
  38. $("#customize_topic").addClass("basicTopicView");
  39. $("#topicViewBasic").addClass("active");
  40. }
  41. else{
  42. $("#topicViewRegular").addClass("active");
  43. }
  44.  
  45. var customElements = ".thead-dark, .istatwrap > ul > li > span, #shoutbox.front .head ,#panel, .tfoot, .upper, .thead";
  46. var customElements2 = "#header, #header-responsive";
  47.  
  48.  
  49. var customText = ".post_block h3, .post_block h3 a";
  50.  
  51. $('#colorpicker').ColorPicker({
  52. onSubmit: function(hsb, hex, rgb, el) {
  53. $(el).val(hex);
  54. $(el).ColorPickerHide();
  55. $(el).css("backgroundColor", "#" + hex);
  56. $(customElements).css("background-color", "#" + hex);
  57. $(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)");
  58. $(customText).css("color", "#" + hex);
  59. $.cookie('customcolor',hex,{ expires: 365, path: '/'});
  60. },
  61. onBeforeShow: function () {
  62. $(this).ColorPickerSetColor(this.value);
  63. },
  64. onChange: function (hsb, hex, rgb) {
  65. $(customElements).css("background-color", "#" + hex);
  66. $(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)");
  67. $(customText).css("color", "#" + hex);
  68. $.cookie('customcolor',hex,{ expires: 365, path: '/'});
  69. }
  70. })
  71. .bind('keyup', function(){
  72. $(this).ColorPickerSetColor(this.value);
  73. });
  74.  
  75. if ( ($.cookie('customcolor') != null)) {
  76. $(customElements).css("background-color", "#" + $.cookie('customcolor'));
  77. $(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)");
  78. $(customText).css("color", "#" + $.cookie('customcolor'));
  79. $("#colorpicker").val($.cookie('customcolor'));
  80. }
  81. else{
  82. $(customElements).css("background-color","#3a85ba");
  83. $(customElements2).css("background","#3a85ba");
  84. $(customText).css("color","#3a85ba");
  85. }
  86.  
  87. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement