Scan your site now

Security Report Summary
E
Site:
Scanned Site(s):
1
IP Address:
104.31.80.116
Report Time:
22 Oct 2020 00:29:10 UTC
Checks:
Window Referrer
Window Opener
Comments
Enabled Debugging
Unsafe Functions
Warning:
Please have a look at the security issues / warnings in the report.
Security Issues
Window Referrer
  • window.open(td_ad_background_click_link);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • window.open(currentUrl);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
Warnings
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
  • /* <![CDATA[ */[https://ejuicecafe.com/]
  • /* ]]> */[https://ejuicecafe.com/]
  • /* <![CDATA[ */[https://ejuicecafe.com/]
  • /* ]]> */[https://ejuicecafe.com/]
  • /* <![CDATA[ */[https://ejuicecafe.com/]
  • /* ]]> */[https://ejuicecafe.com/]
  • /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license | WordPress 2019-05-16 */[https://ejuicecafe.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp]
  • /* * Polyfill for Internet Explorer * See https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent */[https://ejuicecafe.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.2.2]
  • /* * Supersubs v0.3b - jQuery plugin * Copyright (c) 2013 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of * their longest list item children. If you use this, please expect bugs and report them * to the jQuery Google Group with the word 'Superfish' in the subject line. * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* * iosSlider - http://iosscripts.com/iosslider/ */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /*! Magnific Popup - v0.9.9 - 2013-12-27 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2013 Dmitry Semenov; */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * placeholder */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * function to check the phone screen * @see tdEvents * The jQuery windows width is not reliable cross browser! */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 13.05.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - initial (default) value of the _currentIntervalIndex * - it's used by third part libraries * - it used just as constant value */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - keep the current interval index * - it should be modified/taken just by setter/getter methods * - after computing, it should not be a negative value */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - it keeps the interval index * - it should be modified/taken just by setter/getter methods * - it must be a crescendo positive values */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - getter of the _currentIntervalIndex * - it should be used by outsiders libraries * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - setter of the _intervalList - it should be used by outsiders libraries * @param value */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - getter of the _intervalList * - it should be used by outsiders libraries * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - getter of the tdViewport current item * - it should be used by outsiders libraries * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - detect view port changes * - it returns true if the change view port has changed, false otherwise * - it also sets the _currentIntervalIndex * @returns {boolean} True when viewport has changed */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * get the real view port width on safari * @type {{divAdded: boolean, divJqueryObject: string, getRealWidth: Function}} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Menu script */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* * initialize menu */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * adjust submenu position - if it goes out of window move it to the left * @param item - submenu item * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * calculate mouse direction * @param x1 - old x position * @param y1 - old y position * @param x2 - current x position * @param y2 - current y position * @returns {number} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * set menu functionality for desktop and touch devices * @param menuLinks - submenu links (anchors) * @param mainMenu - main menu * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* TOUCH DEVICES */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* DESKTOP */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * unbind menu events */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_util.js v2.0 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td`ScrollingAnimation:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* jshint -W020 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * stop propagation of an event - we should check this if we can remove window.event.cancelBubble - possible * a windows mobile issue * @param event */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * checks if a form input field value is a valid email address * @param val * @returns {boolean} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * utility function, used by td_post_images.js * @param classSelector */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * safe function to read variables passed by the theme via the js buffer. If by some kind of error the variable is missing from the global scope, this function will return false * @param variableName * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * is a given variable undefined? - this is the underscore method of checking this * @param obj * @returns {boolean} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * scrolls to a dom element * @param domElement */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * scrolls to a dom element - the element will be close to the center of the screen * !!! compensates for long distances !!! */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * scrolls to a position * @param pxFromTop - pixels from top */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by ra on 6/27/14. * copyright tagDiv 2014 * V 1.1 - better iOS 8 support */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * run the affix, we use the menu wrap selector to compute the menu position from top * { menu_selector: '.td-header-main-menu', menu_wrap_selector: '.td-header-menu-wrap', tds_snap_menu: tdUtil.getBackendVar('tds_snap_menu') } */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - get the real affix height. * The real affix height is computed only once, when the menu is affix. Till then, the function * return the values set at init. * * These values are important because they are used in the tdSmartSidebar.js for the * td_affix_menu_computed_height variable, which then is used to determine the sidebar position. * * For 'Newspaper', the sidebar needs a custom padding top (see @tdSmartSidebar.js), otherwise * the sidebar is sticked to the affix menu. * * * @returns {number} affix height * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * called by tdEvents.js on scroll */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- scroll direction + delta (used by affix for now) to run thios code: - tdAffix.tds_snap_menu != '' (from above) - tdAffix.tds_snap_menu != 'snap' */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* --- end simple snap --- */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- check scroll directions (we may also have scroll_direction = '', that's why we have to check for the specific state (up or down)) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * calculates the affix point (the distance from the top when affix should be enabled) * @see tdAffix.init() * @see tdEvents */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * recalculate the wrapper height. To support different menu heights */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * turns affix on for the menu element * @param td_affix_menu_element * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Turns affix off for the menu element * @param td_affix_menu_element * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* tagDiv - 2014 Our portfolio: http://themeforest.net/user/tagDiv/portfolio Thanks for using our theme! :)*/[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdModalImageLastEl:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdEvents:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * smart lists drop down pagination redirect */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * More stories box */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * called by tdEvents.js on scroll */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Resize the videos */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * currentTarget - the li element * target - the element clicked inside of the currentTarget */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Add retina support */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /*jQuery('body').click(function(e){ if(! jQuery(e.target).hasClass('custom-background')){ alert('clicked on something that has not the class theDIV'); }});*/[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * reading cookies * @param name * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * * @param td_time_cookie_array * * @param[0]: name of the cookie * @param[1]: value of the cookie * @param[2]: expiration time */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Scroll to top + animation stop */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * called by tdEvents.js on scroll - back to top */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * make td-post-template-6 title move down and blurry * called from single_tempalte_6.php via the js buffer */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the animation loop */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * if we have pictures only on 3 from 4 slides then remove, from magnific popup, the one with no image */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Set the mobile menu min-height property This is usually used to force vertical scroll bar appearance from the beginning. Without it, on some mobile devices (ex Android), at scroll bar appearance there are some visual issues. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Used on comments form to prevent comments form submission without filing the required fields */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdLocalCache:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * init the class */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Note: the autofocus does not work for iOS and windows phone devices as it's considered bad user experience */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * moves the select up */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * moves the select prompt down */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Recompute the current element in the search results. * Used by the move_prompt_up and move_prompt_down * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * puts the focus on the input box */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * removes the focus from the input box */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX: process the response from the server */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_data_object.td_data td_data_object.td_total_results td_data_object.td_total_in_list */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX: process the response from the server for the responsive version of the theme */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX: do the ajax request */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX: do the ajax request for the responsive version of the theme */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- tdPostImages.js --------------------------------------------------------------------------- */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAffix:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdIsScrollingAnimation:boolean */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - add a general td-modal-image class to the all post images */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * tdBlocks.js * v3.0 5 August 2015 * Converted to WP JS standards + jsHint */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tds_theme_color_site_wide:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdSmartSidebar:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationStack:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdLoadingBox:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdInfiniteLoader:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdBlocksArray:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdLocalCache:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- AJAX pagination next */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- AJAX pagination prev */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- AJAX pagination load more */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- pull down open/close //on mobile devices use click event */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * (hover) open and close the drop down menu (on blocks on hover) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- click on related posts in single posts */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- MEGA MENU */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * On touch screens check for double click and redirect to the subcategory page if that's the case, * if not double click... do the normal ajax request * @param event * @param jQueryObject */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * this one makes the ajax request for mega menu filter * hover or click on mega menu subcategories */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global this:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Mega menu filters */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Subcategories */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Newspaper ONLY * used by the drop down ajax filter on blocks */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Newsmag ONLY * when a item is from the dropdown menu is clicked (on all the blocks) * @todo asta face ceva cu ios slider-ul in plus fata de aia de pe Newspaper */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Newsmag ONLY change the pull down filter value to loading... and to the current category after an ajax reply * is received * @param td_block_uid * @param td_text */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * makes a ajax block request * @param current_block_obj * @param td_user_action - load more or infinite loader (used by the animation) * @returns {string} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * process the response from the ajax query (it also processes the responses stored in the cache) * @param data * @param td_user_action - load more or infinite loader (used by the animation) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_data_object.td_block_id td_data_object.td_data td_data_object.td_cur_cat */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * loading start * @param current_block_obj * @param cache_hit boolean - is true if we have a cache hit * @param td_user_action - the request type / infinite_load ? */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the default animation if the user action is NOT load_more or infinite_load * infinite load has NO animation ! */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * we have a reply from the ajax request * @param td_reply_obj - the reply object that we got from the server, it's useful with infinite load * @param current_block_obj * @param td_user_action - load more or infinite loader (used by the animation) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * search by block _id * @param myID - block id * @returns {number} the index */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * gets the block object using a block ID * @param myID * @returns {*} block object */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_util.js v1.1 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_please_wait:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_user_pass_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_user_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Modal window js code */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from login tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from register tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from forgot password tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * swhich the div's acordingly to the user action (Log In, Register, Remember Password) * * ids_array : array of ids that have to be showed or hidden */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * adds or remove a class from an html object * * param : array with object identifier (id - # or class - .) * ex: ['.class_indetifier', 1, 'class_to_add'] or ['.class_indetifier', 0, 'class_to_remove'] */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * empty all fields in modal window */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * call to server from modal window * * @param $action : what action (log in, register, forgot email) * @param $email : the email beening sent * @param $user : the user name beening sent */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_util.js v1.1 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_please_wait:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_user_pass_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_user_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_email_incorrect:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from login tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from register tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * handle all request made from forgot password tab */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * swhich the div's acordingly to the user action (Log In, Register, Remember Password) * * ids_array : array of ids that have to be showed or hidden */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * adds or remove a class from an html object * * param : array with object identifier (id - # or class - .) * ex: ['.class_indetifier', 1, 'class_to_add'] or ['.class_indetifier', 0, 'class_to_remove'] */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * empty all fields in modal window */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * call to server from modal window * * @param $action : what action (log in, register, forgot email) * @param $email : the email beening sent * @param $user : the user name beening sent */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- tagDiv live css compiler ( 2013 ) - this script is used on our demo site to customize the theme live - not used on production sites */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_read_site_cookie:Function */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_set_cookies_life:Function */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * 1. clear any extended timer/interval * 2. hide the element * 3. adjust its width to the initial value * 4. hide the previewer element (this will be shown by the a mouseenter event if it's the case) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Position the '.td-screen-demo' element according to the mouse position * * @param event - mouse move * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Used when the width of the demo menu has changed (the width of the extended screen also changes) * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * show the panel if the cookie is set */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- On load */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by RADU on 6/24/14. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * used when the trending now block is used on auto mod and we click on show prev or show next article title * this will make the auto mode wait another xx seconds before displaying the next article title */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * used when the trending now block is used on auto mod and we click on show prev or show next article title * this will make the auto mode wait another xx seconds before displaying the next article title */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* function for changing the posts in `trending now` display area * *array_param[0] : the id of current `trending now wrapper` *array_param[1] : moving direction (left or right) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- history js */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * generally used on load * @param data */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * ads an history entry - it also knows if we are using mod rewrite or not * @param data - the history data (state) * @param query_parm_id - 'slide' or other * @param query_parm_value - the value for slide */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * returns the base url of urls with mod rewrite + pagination * @returns {string} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * get the pagination from the urls with mod rewrite on * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * used by the iosslider @startAtSlide, it return 1 if there is no pagination or returns the pagination * @param query_parm_id * @returns {*} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * used to check if a number is an integer * @param n * @returns {boolean} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * returns a query parameter from the current url - we use it for ?p= * @param name * @returns {string} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * callback for slides with history * @param args */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * ie8 does not have pushState and history */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * @depends on: * td_util * td_events * tdAffix */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdViewport:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAffix:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * @see tdSmartSidebar.td_events_resize */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * add clear fix to the content and sidebar. * we need the clear fix to clear the margin of the first and last element */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * this is the height of the menu, computed live. We * @type {number} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * scrollTop - is the distance that is scrolled from the top of the document PLUS the height of the menu */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Is the sidebar smaller than the content ? */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the sidebar is smaller than the view port? that means that we have to switch to a more simpler sidebar AKA affix */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the sidebar is larger than the view port and the content is bigger */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * This is the case when the scroll direction is 'up', but the sidebar is above the viewport (it could be left behind by a fast operation like typing HOME key) */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * after we have the state, we enter this switch that makes sure that we only have one state change */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * check if the two numbers are approximately equal OR the number1 is smaller. * This function is used to compensate for differences in the offset top reported by IE, FF but not chrome * IE and FF have an error for offset top of +- 0.5 * @param number1 - this has to be smaller or approximately equal with number2 to return true * @param number2 * @returns {boolean} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Checks to see if number1 < number2 by at least one unit! * @param number1 * @param number2 * @returns {boolean} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Infinite loader v1.0 by Radu O. / tagDiv * USES: * - tdEvents.js * - for blocks: * - td_block::get_block_pagination - custom load more * - in td_js_generator.php - main block object has ajax_pagination_infinite_stop - to stop the infinite scroll after x number of pages and show the load more button after that * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdBlocks:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Global infinite loader object */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - register and keep track of dom elements * - calculate position from the top of each element * - monitor on scroll event * - if one or more of the dom elements is visible * - fire the callback for that dom element! only ONCE */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * foreach element from items, compute the distances from the top * - this is done only on load or when the page is resized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * calculate if we have to fire an event like isVisibleCallback() * - this is done on scroll and on resize! */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * enables the isVisibleCallback - it is called by td_blocks.js only when a block receives an infinite loading ajax reply * @param $item_uid - an unique id of the item, usually is the block id! * @see tdBlocks.tdBlockAjaxLoadingEnd */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * we are using td_ajax_infinite to know when to trigger a block loading */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the callback when the bottom of the element is visible on screen and we need to do something - like load another page * - the callback does not fire again until tdInfiniteLoader.enable_is_visible_callback is called @see tdInfiniteLoader.js:95 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * show the load more button. The button is already there, hidden - do not know if it's the best solution :) * @see td_block::get_block_pagination in td_block.php */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** used by vimeo in td_video shortcode* */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_custom_events.js - handles the booster td_events that require throttling * v 1.0 - wp_011 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationScroll:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationStack:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdPullDown:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdBackstr:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_backstretch_items:Array */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_compute_backstretch_item:Function */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global setMenuMinHeight:Function */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback real scroll called from td_events * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback real resize called from td_events * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback lazy scroll called from td_events at 100ms * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback lazy scroll called from td_events at 500ms * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback lazy resize called from td_events at 100ms * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - callback lazy resize called from td_events at 500ms * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* tdEvents.js - handles the events that require throttling * v 2.0 - wp_010 * * moved in theme from wp_booster */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAffix:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdSmartSidebar:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdViewport:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdInfiniteLoader:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_more_articles_box:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdCustomEvents:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_events_scroll_scroll_to_top:Function */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* ---------------------------------------------------------------------------- Run affix menu event */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * updates the view counter thru ajax */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_video_playlist.js v1.1 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global YT:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global $f:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* jshint -W069 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* jshint -W116 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* td_slide.js */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 16.02.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdViewport:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to init the tdPullDown object * - it must be called before any item adding * - it initializes the _view_port_interval_index * - the items list is initialized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - add an item to the item list and initialize it * * @param item The item to be added and initialized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Deletes an item base on blockUid. Note that blockUid is optional (this library is also used outside of blocks)! * Make sure that you add blockUid to items that you expect to be deleted * @param blockUid */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - internal utility function used to initialize an item * - an item must be initialized only once * - every element having a specified css class is added in the horizontal list * * @param item {tdPullDown.item} The item to be initialized * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - internal utility function used to summarize width of the horizontal elements * * @param item {tdPullDown.item} The item whose horizontal list is processed * @returns {number} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - internal utility function used to reinitialize all items at the view resolution changing */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - internal utility function used to reinitialize an item at the view resolution changing * * @param item The item being reinitialized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - an internal function used to move elements from the horizontal to the vertical list and vice versa, in according with * the space for horizontal elements. * - it's called every time at the viewport resize, when the space for horizontal elements is modified * * @param item - the item being computed * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - add margin to the element with '.block-title' css class, to keep the vertical_jquery_obj not overlapping over it when * there are no horizontal elements and it is too wide [more strings in name] * @param item tdPullDown.item * @param clear_margin boolean True to just clear margin, or false to check the horizontal elements length and then set the margin * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to compute all items in the item list * * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to move one element from the vertical list to the horizontal one * - the function returns the element that has been moved, otherwise null * - the last element moving hides the vertical top header * * @param item - the item whose element is moved * @returns {T} - the moved element * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to move one element from the horizontal list to the vertical one * - the function returns the element that has been moved, otherwise null * - the first element moving shows the vertical top header * * @param item - the item whose element is moved * @returns {T} - the moved element * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to move all elements to the vertical list * - it's used when the minimum horizontal elements is greater than 0 * * @param item - the item whose elements are moved * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function necessary to be called when the window is being resized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 16.02.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdEvents: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - when a new item property is added, it's added as a real property in the item.properties object. * - if it's already added, the settings of the property are appended * - the settings for an item property must be added in order of the percents * - the percent intervals must not be overloaded (ex. 10-30 and 20-40) * - it doesn't matter how many settings are added to an item property * - after an adding the space of percentage is full, that means after adding * ex: add_item_property('opacity', 10, 30, 0, 1, easing) * * item.properties.opacity.settings : * [ * [0, 10, 0, 0, ''] * [10, 30, 0, 1, easing] - property added * [30, 100, 1, 1, ''] * ] * * ex: add_item_property('opacity', 40, 50, 1, 0) * * item.properties.opacity.settings : * [ * [0, 10, 0, 0, ''] * [10, 30, 0, 1, easing] - property added * [30, 40, 1, 1, ''] * [40, 50, 1, 0, easing] - property added * [50, 100, 0, 0, ''] * ] * * - callable jQuery easing functions: * swing * easeInQuad * easeOutQuad * easeInOutQuad * easeInCubic * easeOutCubic * easeInOutCubic * easeInQuart * easeOutQuart * easeInOutQuart * easeInQuint * easeOutQuint * easeInOutQuint * easeInSine * easeOutSine * easeInOutSine * easeInExpo * easeOutExpo * easeInOutExpo * easeInCirc * easeOutCirc * easeInOutCirc * easeInElastic * easeOutElastic * easeInOutElastic * easeInBack * easeOutBack * easeInOutBack * easeInBounce * easeOutBounce * easeInOutBounce * * @param name string * @param start_percent numeric * @param end_percent numeric * @param start_value numeric * @param end_value numeric * @param easing string [optional] */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * remove an item property * * @param name {String} The name of the property * @returns {boolean} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - function used to init the tdAnimationScroll object * - it must be called before adding any item * - the _view_port_interval_index flag is initialized * - the items list is empty initialized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to add an item to the item list and initialize it * * @param item The item to be added and initialized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to initialize an item * - an item must be initialized only once * * @param item * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to reinitialize all items at the view resolution changing * * @param recompute_height boolean True if it's necessary to recompute the item's height [when view port changes] */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to reinitialize an item at the view resolution changing * * @param item tdAnimationScroll.item * @param recompute_height boolean True if it's necessary to recompute the item height [when view port changes] * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used for computing item properties * * @param item The item whose properties are computed * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used for computing item * - the item properties are computed only when the item is in the view port and it is moving * * @param item The tdAnimationScroll.item to be computed */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to request an animation frame for computing all items * - the flag animation_running is set to false by the last requestAnimationFrame callback (the last animation call), * so a new call to requestAnimationFrame can be done */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - used to call the existing callback animate functions * * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** @todo we'll see if it's necessary to make reinitialization just at the view port changing. Now, it's not * - necessary to be called when the window is being resized */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 30.05.2016. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery: {} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * * @param item tdHomepageFull.item */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 23.02.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * * @param item */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * * @param item * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 11.03.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * abstract: * - check all items in page, sort them using one of a sorted methods and add them in the items array * - at every scroll the items are verified if they are in view port or above * - every item in view port is added into the _items_in_view_port array and they are ready for animation * - items above view port are animated all at once * - items in view port are animated at crescendo intervals [interval / remaining items] * - there's a max and a min interval * - td_block ajax request response use a sort method and add founded items into view port array or into items array */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdEvents:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* Important: 1. The first animation step is produced by the the body selector @see animation-stack.less 2. The second animation step can be applied by the animation_css_class1 3. The final (the main) animation step is applied by the animation_css_class2 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - wait for tdAnimationStack.init() for max_waiting_for_init time * - if time is elapsed, the animation is canceled * - the ready_init is canceled by a fast tdAnimationStack.init call */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - tdAnimationStack.item */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - initialize a tdAnimationStack.item and add it in tdAnimationStack.items * @param item tdAnimationStack.item */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - initialize the offset top of the tdAnimationStack.item parameter * @param item tdAnimationStack.item * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - dynamically search for new elements to create new tdAnimationStack.item * - the items are added in the tdAnimationStack._items_in_view_port, that means they are ready to be animated, * or in the tdAnimationStack.items to be computed later (checked if they are in the view port and animated) * @param selector {string} - jQuery selector * @param sort_type {tdAnimationStack.SORTED_METHOD} - a preferred tdAnimationStack.SORTED_METHOD * @param in_view_port {boolean} - add an item in the tdAnimationStack._items_in_view_port or in the tdAnimationStack.items */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - _precompute_items sorts and adds items in the tdAnimationStack.items array or even in the * tdAnimationStack._items_in_view_port array * - this function is necessary because at scroll just the tdAnimationStack.compute_items function is called * * @param stack_items {[]} founded items * @param sort_type {function} sorting method * @param in_view_port {boolean} add in view port to be already computed, or in the general items array * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - IT'S CALLED ON PAGE LOAD [actually in tdLastInit.js] * - the general init function * - the items are added to the tdAnimationStack.items using check_for_new_items method, and then computed * - the arrays are cleared to be prepared for a reinitialization */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - the arrays are cleared to be prepared for a reinitialization * - the init call is done */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - compute all items */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - timer function initially called by a tdAnimationStack.compute_items function, and then it's auto called * - it calls a setInterval using the interval parameter * @param interval {int} - interval ms */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - get an item from the tdAnimationStack._items_in_view_port array * @returns {tdAnimationStack.item} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - get the interval considering tdAnimationStack.min_interval and tdAnimationStack.max_interval * @param interval {int} - the checked interval value * @returns {int} - the result interval value * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - check where the item is to the view port * @param item {tdAnimationStack.item} * @returns {number} _ITEM_TO_VIEW_PORT value * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - check the sorted tdAnimationStack.items and move them into the _items_above_view_port array or into the _items_in_view_port * - the remaining items are kept by the tdAnimationStack.items for next processing * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - scroll event usually called by tdCustomEvents */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * - resize event usually called by tdCustomEvents */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdSmartSidebar:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdPullDown:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationScroll:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationStack:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdEvents:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAffix:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * affix menu */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * sidebar init */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * pulldown lists * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * parallax effect */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Function used to register the 'move_y' property for every td_animations_scroll.item item of the td_backstretch_items array. * It scales the object image and translate it. At first it is translated so its bottom is at the bottom of the viewport, * but considering the backstretch css classes applied * * @param item tdAnimationScroll.item */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by ra on 8/12/2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdInfiniteLoader:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdAnimationStack:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdSmartSidebar:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdLoadingBox:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tds_theme_color_site_wide:string */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global td_ajax_url:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * tdAjaxLoop.init() is called from: @see includes/wp_booster/td_page_generator::render_infinite_pagination */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * tdAjaxLoop.init() is called from: @see includes/wp_booster/td_page_generator::render_infinite_pagination * only when needed */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * the callback when the bottom of the element is visible on screen and we need to do something - like load another page * - the callback does not fire again until tdInfiniteLoader.enable_is_visible_callback is called @see tdInfiniteLoader.js:95 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * @var {tdAjaxLoop.loopState} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by ra on 9/30/2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* tdWeather.js v1.0 */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdDetect:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global alert:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdLocalCache:false */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** an item is json encoded from this in PHP: @see td_weather::$weather_data */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Init the class, we hook the click event */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * set manual location * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * adds a new weather item * item.block_uid is REQUIERED, based on that id, we delete the item from the array *as of 27.4.2016 the id is not used * @param item object - an item is json encoded from this in PHP: @see td_weather::$weather_data */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * 1. LOCATION api - position callback * @param position * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * 2. AJAX callback for today forecast, this also makes a call to ajax 5 days forecast * @param data - OWM api response - NOTICE: We don't check anything if it's correct :) * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * 3. AJAX callback for the 5 days forecast * @param data - OWM api response NOTICE: We don't check anything if it's correct :) * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * 4. Here we render the global tdWeather._currentItem object to the screen. The object already contains all the needed information * about where and what we have to render. * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * gets a weather item based on block_uid * @param block_uid * @returns {*} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Displays a friendly error when the location api fails * @param error - a location api error object? * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * C to F converter. It rounds on big F numbers because we don't have space on the UI. * @param celsiusDegrees * @returns {*} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * converter for KMH -> MPH ex: 2.3 * @param $kmph * @returns {*} * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * ************************************************************************************************************* * set manual location for weather widget * ************************************************************************************************************* */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * shows the manual location form */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * hides the manual location form */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Location API - position callback 2 - used on chrome or other browsers that do not allow current position retrieving * @param location */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX callback for today forecast on manual city location api request * @param data - OWM api response * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * AJAX callback for 5 days forecast on manual city location api request * @param data - OWM api response * */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * --------------------------------------------------------------------------------------------------- * go through the api data list and increment the counter when we find a past day or the same as today * --------------------------------------------------------------------------------------------------- */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * -------------------------------------------------------------------------------------------------- * check the data and set the current forecast day index accordingly * -------------------------------------------------------------------------------------------------- */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdUtil:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global tdTrendingNow:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* - code used to allow external links from td_smart_list, when the Google Yoast "Track outbound click and downloads" is checked - internal links ("#with-hash") are allowed too - test the links on incognito, by default Google analytics by yoast ignores the Administrator and Editor users */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Created by tagdiv on 29.09.2015. */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* global jQuery:{} */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * The css class selector must be some like this 'td_animation_sprite-10-50-500-0-1-1' * It must start with 'td_animation_sprite' * Fields order: * - number of frames * - width of a frame * - velocity in ms * - loops (number) : reload the animation cycle at infinity or specify the number of loops * - reverse (0 or 1) : the loop include, or not, the reverse path * - automatstart (0 or 1) : the item animation starts, or not, automatically * * @param item * @private */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /** * Deletes an item base on blockUid. * Make sure that you add blockUid to items that you expect to be deleted * @param blockUid */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* <div class="td_animation_sprite-a-b-c-d-e-f"></div> @note - we should have used the data- html attribute here! a - number of frames b - width(px) of a frame c - velocity d - loops number (0 for infinity) e - loop include reverse f - animation start automatically */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* return that.date_default_timezone_get(); */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /* var abbr = '', i = 0, os = 0, default = 0; if (!tal.length) { tal = that.timezone_abbreviations_list(); } if (that.php_js && that.php_js.default_timezone) { default = that.php_js.default_timezone; for (abbr in tal) { for (i=0; i < tal[abbr].length; i++) { if (tal[abbr][i].timezone_id === default) { return abbr.toUpperCase(); } } } } for (abbr in tal) { for (i = 0; i < tal[abbr].length; i++) { os = -jsdate.getTimezoneOffset() * 60; if (tal[abbr][i].offset === os) { return abbr.toUpperCase(); } } } */[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • /*! This file is auto-generated */[https://ejuicecafe.com/wp-includes/js/comment-reply.min.js?ver=5.5.1]
  • /*! This file is auto-generated */[https://ejuicecafe.com/wp-includes/js/underscore.min.js?ver=1.8.3]
  • /*! This file is auto-generated */[https://ejuicecafe.com/wp-includes/js/wp-util.min.js?ver=5.5.1]
  • /** Plugin Name: WP Review* Plugin URI: http://mythemeshop.com/plugins/wp-review/* Description: Create reviews! Choose from Stars, Percentages, Circles or Points for review scores. Supports Retina Display, WPMU & Unlimited Color Schemes.* Author: MyThemesShop* Author URI: http://mythemeshop.com/*/[https://ejuicecafe.com/wp-content/plugins/wp-review/public/js/main.js?ver=5.3.4]
  • /*! This file is auto-generated */[https://ejuicecafe.com/wp-includes/js/wp-embed.min.js?ver=5.5.1]
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
  • console.log(msg);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(mouseDirection);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(distance + ' -> ' + computed_time + ' -> ' + (1100+computed_time));[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdAffix.menu_offset);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(scrollDelta);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(offset);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(offset + ' ' + scroll_direction);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('computed: ' + tdAffix.top_offset);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdAffix.tds_snap_menu_logo);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item.el);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item.el[0].id);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(parseInt(nr_slide[1]) + 1);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('test');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item.el);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item.el);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(item.el);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('tdAjaxDoBlockRequest:');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(requestData);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('tdAjaxBlockProcessResponse:');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdReplyObj);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('.' + current_block_obj.id + '_rand .td_ajax_load_more_js');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log( event );[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log( event );[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log( 'in MAIN ' + contor++);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('out MAIN ');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log( msg );[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(i + "=>" + list[i] + "\n");[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(cur_item_ref.content_bottom + ' >= ' + cur_item_ref.sidebar_bottom);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('sidebar_top' + cur_item_ref.sidebar_top + ' content top:' + cur_item_ref.content_top);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(cur_item_ref.sidebar_bottom + ' < ' + cur_item_ref.content_bottom);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('sidebar_top' + cur_item_ref.sidebar_top + ' content top:' + cur_item_ref.content_top);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(msg);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdSmartSidebar.items);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(w);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(current_post_count + ': ' + value);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(args.sliderObject[0]);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(args.data.obj[0]);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(window_wight);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('resize 2');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(window_wight);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(msg);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(previous_result);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log("initializare " + tdAnimationScroll.items.length + " : " + item.top_marker_jquery_obj.offset().top);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log("reinitializare " + tdAnimationScroll.items.length + " : " + item.top_marker_jquery_obj.offset().top);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(current_setting.easing + ' : ' + easing_step + ' ~ ' + easing_computed_value + ' ~ ' + (current_setting.start_value + computed_value) + ' & ' + current_setting.start_value + ' $ ' + current_setting.end_value);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(window.pageYOffset + ' : ' + item.offset_top + ' : ' + item.offset_bottom_top);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(percent_display_value);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(msg);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('backstr tarziu ' + item.image_jquery_obj.height() + ' > timp : ' + (Date.now() - currentTimeStart));[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('imagine incarcata ' + item.image_jquery_obj.height() + ' > timp : ' + (Date.now() - currentTimeStart));[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log( msg );[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(msg);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('END' + tdAjaxLoop.loopState.currentPage + ' max: ' + tdAjaxLoop.loopState.max_num_pages);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('request:');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdAjaxLoop.loopState);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(errorThrown);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('reply:');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(dataObj);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(tdWeather._currentItem);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(data);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('forecast: ' + weather);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('.' + tdWeather._currentItem.block_uid + ' .td-weather-city');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('city weather api request!');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('city api request url: ' + weather);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('api forecast request!');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('city forecast api request url: ' + weather);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(timestamp);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(forecast_day_format);[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log('Not supported (see source code of date() for timezone on how to add support)');[https://ejuicecafe.com/wp-content/themes/Newspaper/js/tagdiv_theme.js?ver=7.7]
  • console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");[https://ejuicecafe.com/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.0.1]
  • console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');[https://ejuicecafe.com/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.0.1]
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
  • document.write('<'+'div id="placement260535'+plc260535+'"></'+'div>');[https://ejuicecafe.com/]
  • document.write('<'+'div id="placement252814'+plc252814+'"></'+'div>');[https://ejuicecafe.com/]
Additional Information
Link Opener
The window.open("https://example.com/", "_blanc", "noopener"); attribute should always be added to the window.open() function, which open a site in a new tab, to reduce the risk of reverse tabnabbing. Otherwise javascript on the new page has full control over the previous visited page, including permission to change the DOM object and possibly steal session cookies.
Link Referrer
The window.open("https://example.com/", "_blanc", "referrer"); attribute should always be added to the window.open() function to prevent reverse tabnabbing for older browser, which do not support the noopener attribute and to prevent phishing attacks.
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
Scanned URL(s)
e-Juice Cafe - Ejuice Cafe