PageSourceSearch

http://designhub.top/assets/forum/notifications.a96a063daa515f97012d.min.js

js designhub.top collected 2026-09-28 05:07:25 UTC 4,655 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[152,7214,6503,6027,71,7927],{96105:(a,f,u)=>{var r,i;r=[u(7237),u(7927)],i=function(n,c){const d={};return d.init=function(){$(".notifications-list").on("click",'[component="notifications/item/link"]',function(){const l=$(this).parents("[data-nid]").attr("data-nid");socket.emit("notifications.markRead",l,function(p){if(p)return c.error(p)})}),n.get("notifications/mark_all").on("click",function(){socket.emit("notifications.markAllRead",function(l){if(l)return c.error(l);n.get("notifications/item").removeClass("unread")})})},d}.apply(f,r),i!==void 0&&(a.exports=i)},7927:(a,f,u)=>{var r,i;r=[u(32230),u(7237),u(85233)],i=function(n,c,d){const s={};s.alert=function(t){t.alert_id="alert_button_"+(t.alert_id?t.alert_id:new Date().getTime()),t.title=t.title&&t.title.trim()||"",t.message=t.message?t.message.trim():"",t.type=t.type||"info";const o=$("#"+t.alert_id);o.length?p(o,t):l(t)},s.success=function(t,o){s.alert({alert_id:utils.generateUUID(),title:"[[global:alert.success]]",message:t,type:"success",timeout:o||5e3})},s.error=function(t,o){if(t=t&&t.message||t,t==="[[error:revalidate-failure]]"){socket.disconnect(),app.reconnect();return}s.alert({alert_id:utils.generateUUID(),title:"[[global:alert.error]]",message:t,type:"danger",timeout:o||1e4})},s.remove=function(t){$("#alert_button_"+t).remove()};function l(t){app.parseAndTranslate("alert",t,function(o){let e=$("#"+t.alert_id);if(e.length)return p(e,t);e=o,e.fadeIn(200),c.get("toaster/tray").prepend(e),typeof t.closefn=="function"&&e.find("button").on("click",function(){return t.closefn(),m(e),!1}),t.timeout&&_(e,t),typeof t.clickfn=="function"&&e.addClass("pointer").on("click",function(g){$(g.target).is(".close")||t.clickfn(e,t),m(e)}),d.fire("action:alert.new",{alert:e,params:t})})}function p(t,o){t.find("strong").translateHtml(o.title),t.find("p").translateHtml(o.message),t.attr("class","alert alert-dismissable alert-"+o.type+" clearfix"),clearTimeout(parseInt(t.attr("timeoutId"),10)),o.timeout&&_(t,o),d.fire("action:alert.update",{alert:t,params:o}),t.off("click").removeClass("pointer"),typeof o.clickfn=="function"&&t.addClass("pointer").on("click",function(e){$(e.target).is(".close")||o.clickfn(),m(t)})}function m(t){t.fadeOut(500,function(){$(this).remove()})}function _(t,o){const e=o.timeout,g=setTimeout(function(){m(t),typeof o.timeoutfn=="function"&&o.timeoutfn(t,o)},e);t.attr("timeoutId",g),t.css("transition-property","none"),t.removeClass("animate"),setTimeout(function(){t.css("transition-property",""),t.css("transition","width "+(e+450)+"ms linear, background-color "+(e+450)+"ms ease-in"),t.addClass("animate"),d.fire("action:alert.animate",{alert:t,params:o})},50),t.on("mouseenter",function(){$(this).css("transition-duration",0)})}return s}.apply(f,r),i!==void 0&&(a.exports=i)},7237:(a,f,u)=>{var r;r=function(){const i={};return i.core={"topic/teaser":function(n){return n?$('[component="category/topic"][data-tid="'+n+'"] [component="topic/teaser"]'):$('[component="topic/teaser"]')},topic:function(n,c){return $('[component="topic"][data-'+n+'="'+c+'"]')},post:function(n,c){return $('[component="post"][data-'+n+'="'+c+'"]')},"post/content":function(n){return $('[component="post"][data-pid="'+n+'"] [component="post/content"]')},"post/header":function(n){return $('[component="post"][data-pid="'+n+'"] [component="post/header"]')},"post/anchor":function(n){return $('[component="post"][data-index="'+n+'"] [component="post/anchor"]')},"post/vote-count":function(n){return $('[component="post"][data-pid="'+n+'"] [component="post/vote-count"]')},"post/bookmark-count":function(n){return $('[component="post"][data-pid="'+n+'"] [component="post/bookmark-count"]')},"user/postcount":function(n){return $('[component="user/postcount"][data-uid="'+n+'"]')},"user/reputation":function(n){return $('[component="user/reputation"][data-uid="'+n+'"]')},"category/topic":function(n,c){return $('[component="category/topic"][data-'+n+'="'+c+'"]')},"categories/category":function(n,c){return $('[component="categories/category"][data-'+n+'="'+c+'"]')},"chat/message":function(n){return $('[component="chat/message"][data-mid="'+n+'"]')},"chat/message/body":function(n){return $('[component="chat/message"][data-mid="'+n+'"] [component="chat/message/body"]')},"chat/recent/room":function(n){return $('[component="chat/recent/room"][data-roomid="'+n+'"]')}},i.get=function(){const n=Array.prototype.slice.call(arguments,1
1);return i.core[arguments[0]]&&n.length?i.core[arguments[0]].apply(this,n):$('[component="'+arguments[0]+'"]')},i}.call(f,u,f,a),r!==void 0&&(a.exports=r)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.