diff --git a/public/static/admin.js b/public/static/admin.js index 4108f8f6f..166251268 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -59,7 +59,6 @@ require.config({ map: {'*': {css: baseRoot + 'plugs/require/css.js'}}, paths: { 'md5': ['plugs/jquery/md5.min'], - 'chat': ['plugs/michat/michat'], 'json': ['plugs/jquery/json.min'], 'xlsx': ['plugs/jquery/xlsx.min'], 'excel': ['plugs/jquery/excel.xlsx'], diff --git a/public/static/plugs/michat/chart.js b/public/static/plugs/michat/chart.js deleted file mode 100644 index 369d8e4c5..000000000 --- a/public/static/plugs/michat/chart.js +++ /dev/null @@ -1,116 +0,0 @@ -(new function () { - this.app = angular.module("michat", []).run(callback); - angular.bootstrap(document.getElementById(this.app.name), [this.app.name]); - - function callback($rootScope) { - $rootScope.text = ''; - $rootScope.user = {}; - $rootScope.list = []; - - // 数字位数处理 - function toNum(value, fixed) { - while (("" + value).length < fixed) value = '0' + value; - return value; - } - - // 显示时间内容 - $rootScope.showDatetime = function (date) { - var md, td, tm, my = new Date(); - md = my.getFullYear() + '-' + toNum(my.getMonth() + 1, 2) + '-' + toNum(my.getDate(), 2); - td = date.getFullYear() + '-' + toNum(date.getMonth() + 1, 2) + '-' + toNum(date.getDate(), 2); - tm = toNum(date.getHours(), 2) + ':' + toNum(date.getMinutes(), 2) + ':' + toNum(date.getSeconds(), 2); - return md === td ? tm : (td + tm); - }; - for (let i = 10; i <= 99; i++) $rootScope.list.push({ - active: false, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - username: 'nickname_a_' + i, - nickname: 'NickName_A_B_C' + i, - message: [ - { - type: 'text', - float: 'left', - nickname: 'Nickname_A_' + i, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_1_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'right', - username: 'think_admin', - nickname: 'ThinkAdmin', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'right', - username: 'think_admin', - nickname: 'ThinkAdmin', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - }, - { - type: 'text', - float: 'left', - username: 'nickname_a_' + i, - nickname: 'Nickname_A_' + i, - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: '消息内容_2_' + i, - datetime: new Date() - } - ] - }); - // 移除当前用户 - $rootScope.removeUser = function (user, temp) { - temp = []; - for (let i in $rootScope.list) { - if ($rootScope.list[i].username !== user.username) { - temp.push($rootScope.list[i]); - } - } - $rootScope.list = temp; - }; - // 聊天内容底部 - $rootScope.scrollBottom = function () { - setTimeout(function (div) { - div = document.querySelector('.michat-right-list'); - div.scrollTop = div.scrollHeight; - }, 10); - }; - // 切换当前用户 - $rootScope.switchUser = function (user) { - for (let i in $rootScope.list) { - if ($rootScope.list[i].username === user.username) { - $rootScope.list[i].active = true; - $rootScope.user = user; - } else { - $rootScope.list[i].active = false; - } - } - this.scrollBottom(); - }; - // 回复消息内容 - $rootScope.replyUser = function () { - if ($rootScope.text.length < 1) { - alert('请输入内容'); - } - $rootScope.user.message.push({ - type: 'text', - float: 'right', - username: 'NICKNAME_A', - headimg: 'https://demo.thinkadmin.top/upload/decb0fe26fa3f486/b3f6521bf29403c8.png', - content: $rootScope.text, - datetime: new Date() - }); - $rootScope.text = ''; - $rootScope.scrollBottom(); - }; - // 默认选择会话 - $rootScope.switchUser($rootScope.list[2]); - } -}); - diff --git a/public/static/plugs/michat/image/bg.jpg b/public/static/plugs/michat/image/bg.jpg deleted file mode 100644 index 53ba92162..000000000 Binary files a/public/static/plugs/michat/image/bg.jpg and /dev/null differ diff --git a/public/static/plugs/michat/michat.css b/public/static/plugs/michat/michat.css deleted file mode 100644 index 4191476af..000000000 --- a/public/static/plugs/michat/michat.css +++ /dev/null @@ -1,271 +0,0 @@ -::-webkit-scrollbar { - width: 3px; - height: 3px; -} -::-webkit-scrollbar-track { - border-radius: 2px; - background: #ccc !important; -} -::-webkit-scrollbar-thumb { - border-radius: 5%; - background-color: #666 !important; -} -.michat-message-icon { - width: 60px; - height: 60px; - right: 50px; - bottom: 50px; - padding: 0; - z-index: 998; - position: fixed; - line-height: 60px; - border-radius: 50%; -} -.michat-message-icon .layui-icon { - color: #fff; - margin: 0; - font-size: 28px; -} -.michat-message-icon .michat-message-number { - width: 25px; - height: 25px; - font-size: 12px; - background: red; - font-weight: 400; - line-height: 25px; - border-radius: 50%; - position: absolute; - margin: -3px 5px 0 0; -} -.michat { - color: #333; - border: 1px solid rgba(0, 0, 0, 0.05); - font-family: \5FAE\8F6F\96C5\9ED1, serif; - background: #fff url(image/bg.jpg) no-repeat center center; - background-size: cover; -} -.michat .layui-layer-title { - background-color: rgba(245, 245, 245, 0.8); -} -.michat .layui-layer-content { - height: auto !important; - overflow: visible; -} -.michat-left { - top: 0; - left: 0; - bottom: 0; - width: 220px; - z-index: 1000; - overflow: hidden; - position: absolute; - background-color: rgba(220, 220, 220, 0.9); -} -.michat-left:hover { - overflow-y: auto; -} -.michat-left li { - margin: 5px; - cursor: pointer; - position: relative; - line-height: 40px; - white-space: nowrap; - border-radius: 3px; - padding: 5px 30px 5px 5px; -} -.michat-left li:hover { - background-color: #E2E2E2; -} -.michat-left li:hover .layui-icon { - display: inline-block; -} -.michat-left li.michat-this { - background-color: #F3F3F3; -} -.michat-left li .layui-icon { - top: 7px; - right: 5px; - color: #555; - display: none; - font-size: 22px; - position: absolute; -} -.michat-left li .layui-icon:hover { - color: #c00; -} -.michat-left li img { - width: 40px; - height: 40px; - border-radius: 10%; -} -.michat-left li span { - width: 130px; - font-size: 14px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.michat-left li * { - font-size: 14px; - vertical-align: top; - display: inline-block; - *display: inline; - *zoom: 1; -} -.michat-right { - position: relative; - margin-left: 220px; - background-color: rgba(255, 255, 255, 0.9); -} -.michat-right-header { - height: 80px; - cursor: default; - overflow: hidden; - position: relative; -} -.michat-right-header img { - top: 15px; - left: 20px; - width: 50px; - height: 50px; - position: absolute; - border-radius: 100%; -} -.michat-right-header-username { - top: 20px; - left: 60px; - font-size: 16px; - position: relative; -} -.michat-right-list { - height: 300px; - padding: 15px 15px 5px; - overflow-x: hidden; - overflow-y: auto; - border-bottom: 1px solid #ccc; -} -.michat-right-list li { - position: relative; - font-size: 0; - min-height: 68px; - padding-left: 60px; - margin-bottom: 10px; -} -.michat-right-list-item-user { - left: 3px; - position: absolute; -} -.michat-right-list-item-user img { - width: 40px; - height: 40px; - border-radius: 100%; -} -.michat-right-list-item-text { - display: inline-block; - *display: inline; - *zoom: 1; - color: #333; - padding: 8px 15px; - position: relative; - font-size: 14px; - line-height: 22px; - border-radius: 3px; - vertical-align: top; - word-break: break-all; - background-color: #e2e2e2; -} -.michat-right-list-item-text:hover { - opacity: 0.9; -} -.michat-right-list-item-text:after { - top: 8px; - left: -16px; - width: 0; - height: 0; - content: ''; - overflow: hidden; - position: absolute; - border-width: 10px; - border-style: solid dashed dashed; - border-color: transparent #e2e2e2 transparent transparent; -} -.michat-right-list-item-text a { - color: #33DF83; -} -.michat-right-list-item-text img { - max-width: 100%; - vertical-align: middle; -} -.michat-right-list-right { - text-align: right; - padding-left: 0; - padding-right: 60px; -} -.michat-right-list-right .michat-right-list-item-user { - left: auto; - right: 3px; -} -.michat-right-list-right .michat-right-list-item-text { - color: #fff; - text-align: left; - margin-left: 0; - background-color: #5FB878; -} -.michat-right-list-right .michat-right-list-item-text:after { - left: auto; - right: -16px; - border-color: transparent transparent transparent #5FB878; -} -.michat-right-list-right .michat-right-list-item-text a { - color: #fff; -} -.michat-right-footer-textarea { - display: block; - margin-left: 10px; -} -.michat-right-footer-textarea textarea { - width: 100%; - height: 110px; - border: none; - resize: none; - display: block; - padding: 8px 0 0; - overflow: auto; - background: 0 0; - line-height: 22px; -} -.michat-right-footer-textarea textarea:focus { - outline: 0; -} -.michat-right-footer-textarea textarea::-webkit-input-placeholder { - color: #ccc; -} -.michat-right-footer-bottom { - right: 10px; - height: 32px; - bottom: 10px; - cursor: pointer; - font-size: 0; - position: absolute; - line-height: 32px; -} -.michat-right-footer-bottom span { - display: inline-block; - *display: inline; - *zoom: 1; - color: #fff; - padding: 0 20px; - font-size: 14px; - margin-left: 5px; - line-height: 32px; - border-radius: 3px; - vertical-align: top; - background-color: #5FB878; -} -.michat-right-footer-bottom span:hover { - background-color: #69BC80; -} -.michat-right-footer-bottom span:active { - background-color: #59B573; -} -/*# sourceMappingURL=michat.css.map */ \ No newline at end of file diff --git a/public/static/plugs/michat/michat.css.map b/public/static/plugs/michat/michat.css.map deleted file mode 100644 index cc689eeab..000000000 --- a/public/static/plugs/michat/michat.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["michat.less"],"names":[],"mappings":"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","file":"michat.css"} \ No newline at end of file diff --git a/public/static/plugs/michat/michat.js b/public/static/plugs/michat/michat.js deleted file mode 100644 index 82af2b819..000000000 --- a/public/static/plugs/michat/michat.js +++ /dev/null @@ -1,82 +0,0 @@ -define(['angular', baseRoot + 'plugs/michat/mimc-min_1_0_2.js', 'css!' + baseRoot + 'plugs/michat/michat.css'], function () { - return new function (that) { - this.appid = '', this.appkey = ''; - this.secret = '', this.account = ''; - that = this, this.list = [], this.body = $('body'); - // 数据网络请求 - this.httpRequest = function (url, data) { - this.xhr = new XMLHttpRequest(); - this.xhr.open('post', url, false); - this.xhr.setRequestHeader('content-type', 'application/json'); - this.xhr.send(JSON.stringify(data)); - return JSON.parse(this.xhr.response); - }; - // 显示消息图标 - this.showMessageIcon = function () { - that.body.append('0'); - that.body.on('click', '.michat-message-icon', function () { - layui.$.get(baseRoot + 'plugs/michat/template.html', function (template) { - layui.layer.open({ - type: 1, title: false, skin: 'michat', area: ['800px', '520px'], - closeBtn: true, shadeClose: false, content: template, success: function () { - layui.$.getScript(baseRoot + 'plugs/michat/chart.js') - } - }); - }); - }); - }; - this.showMessageIcon(); - // 给指定账号发送消息 - this.send = function (account, payload) { - this.user.sendMessage(account, payload, false); - }; - // SDK登录初始化 - this.login = function () { - this.user = new MIMCUser(this.appid, this.account); - this.user.registerP2PMsgHandler(function (message) { - console.log("time: " + new Date(parseInt(message.getTimeStamp()))); - console.log('load:' + message.getPayload()); - that.list.push({ - type: message.getBizType || 'TEXT', - text: message.getPayload(), - date: new Date(parseInt(message.getTimeStamp())) - }); - $('.michat-message-number').html(that.list.length); - }); - this.user.registerGroupMsgHandler(function (message) { - console.log(message); - }); - this.user.registerFetchToken(function () { - return that.httpRequest('https://mimc.chat.xiaomi.net/api/account/token', { - appId: that.appid, appKey: that.appkey, appSecret: that.secret, appAccount: that.account - }); - }); - this.user.registerStatusChange(function (bindResult, errType, errReason, errDesc) { - if (bindResult) { - console.log("login succeed"); - } else { - console.log("login failed.errReason=" + errReason + ",errDesc=" + errDesc + ",errType=" + errType); - } - }); - this.user.registerServerAckHandler(function (packetId, sequence, timeStamp, errMsg) { - console.log(packetId, sequence, timeStamp, errMsg); - }); - this.user.registerDisconnHandler(function () { - console.log('disconnect'); - }); - this.user.registerUCDismissHandler(function (topicId) { - console.log("uc dismiss:" + topicId); - }); - this.user.registerUCJoinRespHandler(function (topicId, code, msg, context) { - console.log("uc join:" + topicId + ",code=" + code + ",msg=" + msg + ",context=" + context); - }); - this.user.registerUCMsgHandler(function (groupMsg) { - console.log(groupMsg) - }); - this.user.registerUCQuitRespHandler(function (topicId, code, msg, context) { - console.log("uc quit:" + topicId + ",code=" + code + ",msg=" + msg + ",context=" + context); - }); - this.user.login(); - } - }; -}); diff --git a/public/static/plugs/michat/michat.less b/public/static/plugs/michat/michat.less deleted file mode 100644 index 68c09edeb..000000000 --- a/public/static/plugs/michat/michat.less +++ /dev/null @@ -1,321 +0,0 @@ -::-webkit-scrollbar { - width: 3px; - height: 3px; - - &-track { - border-radius: 2px; - background: #ccc !important; - } - - &-thumb { - border-radius: 5%; - background-color: #666 !important; - } -} - -.michat-message-icon { - width: 60px; - height: 60px; - right: 50px; - bottom: 50px; - padding: 0; - z-index: 998; - position: fixed; - line-height: 60px; - border-radius: 50%; - - .layui-icon { - color: #fff; - margin: 0; - font-size: 28px; - } - - .michat-message-number { - width: 25px; - height: 25px; - font-size: 12px; - background: red; - font-weight: 400; - line-height: 25px; - border-radius: 50%; - position: absolute; - margin: -3px 5px 0 0; - } -} - -.michat { - color: #333; - border: 1px solid rgba(0, 0, 0, 0.05); - font-family: \5FAE\8F6F\96C5\9ED1, serif; - background: #fff url(image/bg.jpg) no-repeat center center; - background-size: cover; - - .layui-layer-title { - background-color: rgba(245, 245, 245, 0.8) - } - - .layui-layer-content { - height: auto !important; - overflow: visible; - } -} - -.michat-left { - &:hover { - overflow-y: auto - } - - top: 0; - left: 0; - bottom: 0; - width: 220px; - z-index: 1000; - overflow: hidden; - position: absolute; - background-color: rgba(220, 220, 220, 0.9); - - li { - &:hover { - background-color: #E2E2E2; - - .layui-icon { - display: inline-block - } - } - - &.michat-this { - background-color: #F3F3F3 - } - - .layui-icon { - top: 7px; - right: 5px; - color: #555; - display: none; - font-size: 22px; - position: absolute; - - &:hover { - color: #c00 - } - } - - margin: 5px; - cursor: pointer; - position: relative; - line-height: 40px; - white-space: nowrap; - border-radius: 3px; - padding: 5px 30px 5px 5px; - - img { - width: 40px; - height: 40px; - border-radius: 10% - } - - span { - width: 130px; - font-size: 14px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - * { - font-size: 14px; - vertical-align: top; - display: inline-block; - *display: inline; - *zoom: 1; - } - } -} - -.michat-right { - position: relative; - margin-left: 220px; - background-color: rgba(255, 255, 255, .9); - - &-header { - height: 80px; - cursor: default; - overflow: hidden; - position: relative; - - img { - top: 15px; - left: 20px; - width: 50px; - height: 50px; - position: absolute; - border-radius: 100% - } - - &-username { - top: 20px; - left: 60px; - font-size: 16px; - position: relative; - } - } - - &-list { - height: 300px; - padding: 15px 15px 5px; - overflow-x: hidden; - overflow-y: auto; - border-bottom: 1px solid #ccc; - - li { - position: relative; - font-size: 0; - min-height: 68px; - padding-left: 60px; - margin-bottom: 10px; - } - - &-item-user { - left: 3px; - position: absolute; - - img { - width: 40px; - height: 40px; - border-radius: 100% - } - } - - &-item-text { - &:hover { - opacity: .9 - } - - &:after { - top: 8px; - left: -16px; - width: 0; - height: 0; - content: ''; - overflow: hidden; - position: absolute; - border-width: 10px; - border-style: solid dashed dashed; - border-color: transparent #e2e2e2 transparent transparent; - } - - display: inline-block; - *display: inline; - *zoom: 1; - color: #333; - padding: 8px 15px; - position: relative; - font-size: 14px; - line-height: 22px; - border-radius: 3px; - vertical-align: top; - word-break: break-all; - background-color: #e2e2e2; - - a { - color: #33DF83 - } - - img { - max-width: 100%; - vertical-align: middle - } - } - - &-right { - text-align: right; - padding-left: 0; - padding-right: 60px; - - .michat-right-list-item { - &-user { - left: auto; - right: 3px; - } - - &-text { - &:after { - left: auto; - right: -16px; - border-color: transparent transparent transparent #5FB878; - } - - color: #fff; - text-align: left; - margin-left: 0; - background-color: #5FB878; - - a { - color: #fff - } - } - } - } - } - - - &-footer { - &-textarea { - display: block; - margin-left: 10px; - - textarea { - - &:focus { - outline: 0 - } - - &::-webkit-input-placeholder { - color: #ccc; - } - - width: 100%; - height: 110px; - border: none; - resize: none; - display: block; - padding: 8px 0 0; - overflow: auto; - background: 0 0; - line-height: 22px; - } - } - - &-bottom { - right: 10px; - height: 32px; - bottom: 10px; - cursor: pointer; - font-size: 0; - position: absolute; - line-height: 32px; - - span { - &:hover { - background-color: #69BC80 - } - - &:active { - background-color: #59B573 - } - - display: inline-block; - *display: inline; - *zoom: 1; - color: #fff; - padding: 0 20px; - font-size: 14px; - margin-left: 5px; - line-height: 32px; - border-radius: 3px; - vertical-align: top; - background-color: #5FB878; - } - } - } -} diff --git a/public/static/plugs/michat/mimc-min_1_0_2.js b/public/static/plugs/michat/mimc-min_1_0_2.js deleted file mode 100644 index 8cb631ebf..000000000 --- a/public/static/plugs/michat/mimc-min_1_0_2.js +++ /dev/null @@ -1,717 +0,0 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;ea||1342177279>>=1)b+=b;return d}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}(); -$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid; -goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)}; -goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2Number(a[1])?!1:b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}); -a("es6-impl",function(){return!0});a("es7",function(){return b("2 ** 2 == 4")});a("es8",function(){return b("async () => 1, true")});return c},goog.Transpiler.prototype.needsTranspile=function(a){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;this.requiresTranspilation_||(this.requiresTranspilation_=this.createRequiresTranspilation_());if(a in this.requiresTranspilation_)return this.requiresTranspilation_[a];throw Error("Unknown language mode: "+a);},goog.Transpiler.prototype.transpile= -function(a,b){return goog.transpile_(a,b)},goog.transpiler_=new goog.Transpiler,goog.DebugLoader=function(){this.dependencies_={loadFlags:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}};this.oldIeWaiting_=!1;this.queuedModules_=[];this.lastNonModuleScriptIndex_=0},goog.DebugLoader.IS_OLD_IE_=!(goog.global.atob||!window.document||!window.document.all),goog.DebugLoader.prototype.earlyProcessLoad=function(a){goog.DebugLoader.IS_OLD_IE_&&this.maybeProcessDeferredDep_(a)},goog.DebugLoader.prototype.load= -function(a){var b=this.getPathFromDeps_(a);if(b){var c=function(a){if(!(a in f.written||a in f.visited)){f.visited[a]=!0;if(a in f.requires)for(var b in f.requires[a])if(!g.isProvided(b))if(b in f.nameToPath)c(f.nameToPath[b]);else throw Error("Undefined nameToPath for "+b);a in e||(e[a]=!0,d.push(a))}},d=[],e={},f=this.dependencies_,g=this;c(b);for(a=0;a\x3c/script>')},goog.DebugLoader.prototype.appendScriptSrcNode_=function(a){var b=window.document,c=b.createElement("script");c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.DebugLoader.prototype.writeScriptTag_= -function(a,b){if(this.inHtmlDocument()){var c=window.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===b?goog.DebugLoader.IS_OLD_IE_?(this.oldIeWaiting_=!0,b=" onreadystatechange='goog.debugLoader_.onScriptLoad_(this, "+ ++this.lastNonModuleScriptIndex_+")' ",c.write('