我正在使用我使用的登录脚本ajax
,需要知道此代码可能来自哪里,因为无法在我的核心文件中找到任何地方。在检查站点的视图源时能够看到下面的 js。平台是codeigniter
<!-- Begin Attracta Include 2012-10-08 04:51 -->
<script type='text/javascript'>
function attracta_loadjs(url) {
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = url;
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
})();
}
function attracta_shouldrun() {
var v = ["/admin/","/adm/","/wp-admin/","/administrator/"];
for (x in v) if(window.location.pathname.indexOf(v[x]) == 0) return false;
return true;
}
function attracta_window_width() {
if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetWidth ) return document.documentElement.offsetWidth;
if (window.innerWidth) return window.innerWidth;
return 0;
}
function attracta_window_height() {
if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetHeight ) return document.documentElement.offsetHeight;
if (window.innerHeight) return window.innerHeight;
return 0;
}
</script>
<!-- End Attracta Include 2012-10-08 04:51 -->