Momshroom

Blastic Designs New Javascript

Jun 21st, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.    
  3.     var adminstatus=$('#enjin-bar .left a[href$=\"/admin\"]').text();
  4.    
  5.     $(".body-wrap-3").prepend($(".bd-pagetop"));
  6.     $(".body-wrap-3").prepend($(".bd-nav"));
  7.     $(".body-wrap-3").prepend($(".bd-admin"));
  8.    
  9.     if (adminstatus == ''){}
  10.    
  11.     else{
  12.    
  13.     $(".bd-admin").css("display", "block");
  14.    
  15.     }
  16.    
  17.     $(".dropdown").hover(function(){
  18.         $(this).find(".dropdown-content").stop().slideToggle();
  19.     });
  20.    
  21.     $('#nav-ipbutton').click(function() {
  22.         $('#nav-ipbutton').attr('data-original-title', 'Copied!').tooltip('show');
  23.     });
  24.     $('#ipbutton-footer').click(function() {
  25.         $('#ipbutton-footer').attr('data-original-title', 'Copied!').tooltip('show');
  26.     });
  27.    
  28.     var images = ['top-bg1.png', 'top-bg2.png', 'top-bg3.png', 'top-bg4.png', 'top-bg5.png', 'top-bg6.png'];
  29.  $('.bd-pagetop').css({'background-image': 'url(http://files.enjin.com/765160/blasticdesigns/' + images[Math.floor(Math.random() * images.length)] + ')'});
  30.  
  31.    
  32.     $('.element_avatar img').attr('src', function (index, current_value) {
  33.     return current_value.replace('25', '90');
  34.     });
  35.    
  36.     var modules=[
  37.     {
  38.         module:"m_forumlatestthreads",
  39.         icon:"fa-list"
  40.     },
  41.     {
  42.         module:"m_eventsmini",
  43.         icon:"fa-calendar"
  44.     },
  45.     {
  46.         module:"m_login",
  47.         icon:"fa-user"
  48.     },
  49.     {
  50.         module:"m_hitcounter",
  51.         icon:"fa-line-chart"
  52.     },
  53.     {
  54.         module:"m_shoutbox",
  55.         icon:"fa-comments-o"
  56.     },
  57.     {
  58.         module:"m_forumtopposter",
  59.         icon:"fa-star"
  60.     },
  61.     {
  62.         module:"m_forum",
  63.         icon:"fa-users"
  64.     },
  65.     {
  66.         module:"m_minecraftserverstatus_new",
  67.         icon:"fa-power-off"
  68.     },
  69.     {
  70.         module:"m_shopactivity",
  71.         icon:"fa-line-chart"
  72.     },
  73.     {
  74.         module:"m_latestpurchases",
  75.         icon:"fa-tags"
  76.     },
  77.     {
  78.         module:"m_topdonator",
  79.         icon:"fa-heart"
  80.     },
  81.     {
  82.         module:"m_shopping",
  83.         icon:"fa-shopping-cart"
  84.     },
  85.     {
  86.         module:"m_minecraftvoting",
  87.         icon:"fa-star"
  88.     },
  89.     {
  90.         module:"m_members",
  91.         icon:"fa-user"
  92.     },
  93.     {
  94.         module: "m_eventsupcoming",
  95.         icon: "fa-calendar"
  96.     },
  97.     {
  98.         module: "ts3-tree",
  99.         icon: "fa-microphone"
  100.     },
  101.     {
  102.         module:"m_minecraftservertopplayersonline",
  103.         icon:"fa-pie-chart"
  104.     },
  105.     {
  106.         module:"m_tickets",
  107.         icon:"fa-ticket"
  108.     },
  109.     {
  110.         module:"m_messagingchat",
  111.         icon:"fa-comments"
  112.     },
  113.     {
  114.         module:"m_news",
  115.         icon:"fa-newspaper-o"
  116.        
  117.     }
  118.     ];
  119.     $.each(modules, function(){
  120.     $('.'+this.module+'').parents('.container').find('.header_text_text').prepend('<i class="fa '+this.icon+'"></i>');
  121.        
  122.     });
  123.    
  124.    
  125.     var onlineplayers=$('.m_minecraftserverstatus_new .top-area .count').text();
  126.     $(".footer-players span").append(onlineplayers);
  127.    
  128. });
  129.  
  130.  
  131. $(function () {
  132.   $('[data-toggle="tooltip"]').tooltip()
  133. })
  134.  
  135.  
  136. function copyToClipboard(element) {
  137.     var $temp = $("<input>");
  138.     $("body").append($temp);
  139.     $temp.val($(element).text()).select();
  140.     document.execCommand("copy");
  141.     $temp.remove();
  142. }
Add Comment
Please, Sign In to add comment