2 console errors
2 posters
Page 1 of 1
2 console errors
here is the staff online widget code one of the errors
- Code:
<div class="module main">
<div class="main-head">
<div class="h3">
<em class="fa fa-cog fa-spin"></em> Staff Online <em class="fa fa-cog fa-spin"></em>
</div>
</div>
<div class="main-content clearfix">
<div id="staff_widget">
</div><script>jQuery(document).ready(function () {
var widget = jQuery('#staff_widget')[0];
storedValue = sessionStorage.getItem('online_staff');
if (storedValue) {
jQuery(widget).html(storedValue)
} else {
jQuery.get('/viewonline', function (data) {
var group = {
group1: jQuery('.table span[style="color:#000000"]', data).parents('td'),
group2: jQuery('.table span[style="color:#050505"]', data).parents('td'),
group3: jQuery('.table span[style="color:#c82020"]', data).parents('td'),
group4: jQuery('.table span[style="color:#1464F4"]', data).parents('td'),
};
jQuery(widget).append(group.group1).append(group.group2).append(group.group3).append(group.group4);
jQuery('#staff_widget a[href^="/u"]').each(function () {
var prof = jQuery(this).attr('href');
jQuery('<a href="' + prof + '" class="lastpost-avatar"></a>').insertBefore(this);
jQuery('<div class="userTitle"></div>').insertAfter(this);
jQuery(this).prev().load(prof + ' #profile-advanced-right .main-content img:eq(0)');
jQuery(this).next().load(prof + ' #field_id2 dd div:eq(0)')
})
});
jQuery(window).on('load', function () {
if (!document.getElementById(widget)) return;
var currentValue = document.getElementById(widget).innerHTML;
sessionStorage.setItem('online_staff', currentValue)
})
}
});</script>
</div>
</div>
and also is
- Code:
$(document).ready(function() {$('#user_navigation #sign_in').attr('href', '#').attr('onclick', "show_popup('sign_in_popup_popup');");/*$('#user_navigation #sign_in').click(function() {sign_in_popup();});*/});function show_popup(id) {var $oObj = $('#'+id);if ($oObj.css('display') == 'none') {$oObj.add('#document_modal').fadeIn('slow');$("input:text:eq(0):visible").focus();} else {$oObj.add('#document_modal').fadeOut('slow');}}//]]></script>
not sure how to fix this.
punbb
forum link: TPSN
Errors:
Thank you and regards
FrOsTyXi
I managed to fix all the errors in the console close this topic, thank you
Last edited by FrOsTyXi on May 9th 2015, 10:33 pm; edited 1 time in total (Reason for editing : Sloved)
Re: 2 console errors
Locked as Requested
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» google console
» Console Error Help
» Comfirmation code version (Invision wont appear for Wii U/wii Console)
» Google Search Console
» Google search console notification
» Console Error Help
» Comfirmation code version (Invision wont appear for Wii U/wii Console)
» Google Search Console
» Google search console notification
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum