var initPostViewsCounter = function() { PostViewsCounter = { promise: null, args: {}, /** * Initialize counter. * * @param {object} args * * @return {void} */ init: function( args ) { this.args = args; // default parameters let params = {}; // set cookie/storage name let name = 'pvc_visits' + ( args.multisite !== false ? '_' + parseInt( args.multisite ) : '' ); // cookieless data storage? if ( args.dataStorage === 'cookieless' && this.isLocalStorageAvailable() ) { params.storage_type = 'cookieless'; params.storage_data = this.readStorageData( name ); /* COUNT_POST_AS_AUTHOR_VIEW | removed parameter from request if ( 'countAuthor' in args && args.countAuthor === true ) { params.storage_data_author = this.readStorageData( 'pvc_visits_user' + ( args.multisite !== false ? '_' + parseInt( args.multisite ) : '' ) ); } */ } else { params.storage_type = 'cookies'; params.storage_data = this.readCookieData( name ); /* COUNT_POST_AS_AUTHOR_VIEW | removed parameter from request if ( 'countAuthor' in args && args.countAuthor === true ) { params.storage_data_author = this.readCookieData( 'pvc_visits_user' + ( args.multisite !== false ? '_' + parseInt( args.multisite ) : '' ) ); } */ } // rest api request if ( args.mode === 'rest_api' ) { this.promise = this.request( args.requestURL, params, 'POST', { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'X-WP-Nonce': args.nonce }, name ); // admin ajax request } else { params.action = 'pvc-check-post'; params.pvc_nonce = args.nonce; params.id = args.postID; this.promise = this.request( args.requestURL, params, 'POST', { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' }, name ); } }, /** * Handle fetch request. * * @param {string} url * @param {object} params * @param {string} method * @param {object} headers * @param {string} name * * @return {object} */ request: function( url, params, method, headers, name = '' ) { let options = { method: method, mode: 'cors', cache: 'no-cache', credentials: 'same-origin', headers: headers, body: this.prepareRequestData( params ) }; const _this = this; return fetch( url, options ).then( function( response ) { // invalid response? if ( ! response.ok ) throw Error( response.statusText ); return response.json(); } ).then( function( response ) { try { if ( typeof response === 'object' && response !== null ) { if ( 'success' in response && response.success === false ) { console.log( 'Request error' ); console.log( response.data ); } else { if ( _this.args.dataStorage === 'cookieless' ) _this.saveStorageData.call( _this, name, response.storage, response.type ); else _this.saveCookieData( name, response.storage ); _this.triggerEvent( 'pvcCheckPost', response ); } } else { console.log( 'Invalid object' ); console.log( response ); } } catch( error ) { console.log( 'Invalid JSON data' ); console.log( error ); } } ).catch( function( error ) { console.log( 'Invalid response' ); console.log( error ); } ); }, /** * Prepare the data to be sent with the request. * * @param {object} data * * @return {string} */ prepareRequestData: function( data ) { return Object.keys( data ).map( function( el ) { // add extra "data" array return encodeURIComponent( el ) + '=' + encodeURIComponent( data[el] ); } ).join( '&' ).replace( /%20/g, '+' ); }, /** * Prepare the data to be sent with the request. * * @param {string} eventName * @param {object} data * * @return {void} */ triggerEvent: function( eventName, data ) { const newEvent = new CustomEvent( eventName, { bubbles: true, detail: data } ); // trigger event document.dispatchEvent( newEvent ); }, /** * Save localStorage data. * * @param {string} name * @param {object} data * @param {string} type * * @return {void} */ saveStorageData: function( name, data, type ) { /* COUNT_POST_AS_AUTHOR_VIEW | removed setting localStorage user data if ( 'countAuthor' in this.args && this.args.countAuthor === true && 'user' in data ) window.localStorage.setItem( 'pvc_visits_user' + ( this.args.multisite !== false ? '_' + parseInt( this.args.multisite ) : '' ), JSON.stringify( data['user'] ) ); */ window.localStorage.setItem( name, JSON.stringify( data[type] ) ); }, /** * Read localStorage data. * * @param {string} name * * @return {string} */ readStorageData: function( name ) { let data = null; // get data data = window.localStorage.getItem( name ); // no data? if ( data === null ) data = ''; return data; }, /** * Save cookies. * * @param {string} name * @param {object} data * * @return {void} */ saveCookieData: function( name, data ) { var cookieSecure = ''; // ssl? if ( document.location.protocol === 'https:' ) cookieSecure = ';secure'; for ( let i = 0; i < data.name.length; i++ ) { var cookieDate = new Date(); var expiration = parseInt( data.expiry[i] ); // valid expiration timestamp? if ( expiration ) expiration = expiration * 1000; // add default 24 hours else expiration = cookieDate.getTime() + 86400000; // set cookie date expiry cookieDate.setTime( expiration ); // set cookie document.cookie = data.name[i] + '=' + data.value[i] + ';expires=' + cookieDate.toUTCString() + ';path=/' + ( this.args.path === '/' ? '' : this.args.path ) + ';domain=' + this.args.domain + cookieSecure + ';SameSite=Lax'; } }, /** * Read cookies. * * @param {string} name * * @return {string} */ readCookieData: function( name ) { var cookies = []; document.cookie.split( ';' ).forEach( function( el ) { var [key, value] = el.split( '=' ); var trimmedKey = key.trim(); var regex = new RegExp( name + '\\[\\d+\\]' ); // look all cookies starts with name parameter if ( regex.test( trimmedKey ) ) cookies.push( value ); } ); return cookies.join( 'a' ); }, /** * Check whether localStorage is available. * * @return {bool} */ isLocalStorageAvailable: function() { var storage; try { storage = window['localStorage']; storage.setItem( '__pvcStorageTest', 0 ); storage.removeItem( '__pvcStorageTest' ); return true; } catch( e ) { return e instanceof DOMException && ( e.code === 22 || e.code === 1014 || e.name === 'QuotaExceededError' || e.name === 'NS_ERROR_DOM_QUOTA_REACHED' ) && ( storage && storage.length !== 0 ); } } } PostViewsCounter.init( pvcArgsFrontend ); } document.addEventListener( 'DOMContentLoaded', initPostViewsCounter );{"id":1309,"date":"2017-05-15T14:04:58","date_gmt":"2017-05-15T14:04:58","guid":{"rendered":"https:\/\/masterhellas.alexas.gr\/index.php\/product\/katheti-polybathmia-fygokentri-antlia-cdl2-20\/"},"modified":"2024-11-27T12:19:29","modified_gmt":"2024-11-27T12:19:29","slug":"katheti-polybathmia-fygokentri-antlia-cdl2-20","status":"publish","type":"product","link":"https:\/\/masterhellas.com.gr\/product\/katheti-polybathmia-fygokentri-antlia-cdl2-20\/","title":{"rendered":"\u039a\u0391\u0398\u0395\u03a4\u0397 \u03a0\u039f\u039b\u03a5\u0392\u0391\u0398\u039c\u0399\u0391 \u03a6\u03a5\u0393\u039f\u039a\u0395\u039d\u03a4\u03a1\u0397 \u0391\u039d\u03a4\u039b\u0399\u0391 CDL2-20 0.5HP 220V"},"content":{"rendered":"
\u039c\u03bf\u03bd\u03c4\u03ad\u03bb\u03bf: CDL2-20 \u039a\u03ac\u03b8\u03b5\u03c4\u03b7 \u03c0\u03bf\u03bb\u03c5\u03b2\u03ac\u03b8\u03bc\u03b9\u03b1 \u03b1\u03b5\u03c1\u03cc\u03c8\u03c5\u03ba\u03c4\u03b7 \u03b1\u03bd\u03c4\u03bb\u03af\u03b1 \u03bc\u03bf\u03bd\u03bf\u03c6\u03b1\u03c3\u03b9\u03ba\u03ae.<\/p>\n \u0393\u03b9\u03b1 \u03bf\u03b9\u03ba\u03b9\u03b1\u03ba\u03ae \u03ba\u03b1\u03b9 \u03b2\u03b9\u03bf\u03bc\u03b7\u03c7\u03b1\u03bd\u03b9\u03ba\u03ae \u03c7\u03c1\u03ae\u03c3\u03b7, \u03b3\u03b9\u03b1 \u03ac\u03bd\u03c4\u03bb\u03b7\u03c3\u03b7 \u03ba\u03b1\u03b8\u03b1\u03c1\u03bf\u03cd \u03bd\u03b5\u03c1\u03bf\u03cd \u03ba\u03b1\u03b9 \u03bc\u03b7 \u03c4\u03bf\u03be\u03b9\u03ba\u03ce\u03bd \u03c5\u03b3\u03c1\u03ce\u03bd. \u039a\u03b1\u03c4\u03ac\u03bb\u03bb\u03b7\u03bb\u03b7 \u03b3\u03b9\u03b1 \u03c0\u03b9\u03b5\u03c3\u03c4\u03b9\u03ba\u03ac \u03c3\u03c5\u03b3\u03ba\u03c1\u03bf\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1, \u03b3\u03b9\u03b1 \u03c0\u03cc\u03c4\u03b9\u03c3\u03bc\u03b1 \u03ba\u03ae\u03c0\u03c9\u03bd \u03ba\u03b1\u03b9 \u03ac\u03c1\u03b4\u03b5\u03c5\u03c3\u03b7. \u0395\u03c0\u03af\u03c3\u03b7\u03c2 \u03b5\u03bd\u03b4\u03b5\u03af\u03ba\u03bd\u03c5\u03c4\u03b1\u03b9 \u03b7 \u03c7\u03c1\u03ae\u03c3\u03b7 \u03c4\u03b7\u03c2\u00a0 \u03c3\u03b5 \u03c0\u03b9\u03c3\u03af\u03bd\u03b5\u03c2, \u03c3\u03b5 \u03c3\u03c5\u03c3\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1 \u03b1\u03bd\u03c4\u03af\u03c3\u03c4\u03c1\u03bf\u03c6\u03b7\u03c2 \u03cc\u03c3\u03bc\u03c9\u03c3\u03b7\u03c2, \u03c3\u03b5 \u03c3\u03c5\u03c3\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1 \u03c8\u03cd\u03be\u03b7\u03c2-\u03b8\u03ad\u03c1\u03bc\u03b1\u03bd\u03c3\u03b7\u03c2, \u03c3\u03b5 \u03c3\u03c5\u03c3\u03c4\u03ae\u03bc\u03b1\u03c4\u03b1 \u03c0\u03b1\u03c1\u03bf\u03c7\u03ae\u03c2 \u03c5\u03c8\u03b7\u03bb\u03ae\u03c2 \u03c0\u03af\u03b5\u03c3\u03b7\u03c2 \u03bd\u03b5\u03c1\u03bf\u03cd \u03ba\u03b1\u03b9 \u03c3\u03b5 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03ac\u03bb\u03bb\u03b5\u03c2 \u03b5\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ad\u03c2. \u00a0<\/p>\n \u0391\u03bd\u03c4\u03bb\u03af\u03b1 \u03bc\u03b5\u03b3\u03ac\u03bb\u03b7\u03c2 \u03b1\u03c0\u03cc\u03b4\u03bf\u03c3\u03b7\u03c2 \u03ba\u03b1\u03b9 \u03b1\u03bd\u03c4\u03bf\u03c7\u03ae\u03c2 \u03bc\u03b5 \u03b1\u03bd\u03bf\u03be\u03b5\u03af\u03b4\u03c9\u03c4\u03b5\u03c2 \u03c6\u03c4\u03b5\u03c1\u03c9\u03c4\u03ad\u03c2 \u03ba\u03b1\u03b9 \u03ac\u03be\u03bf\u03bd\u03b1 (AISI304ss), \u03ba\u03b1\u03c4\u03ac\u03bb\u03bb\u03b7\u03bb\u03b7 \u03b3\u03b9\u03b1 \u03b8\u03b5\u03c1\u03bc\u03bf\u03ba\u03c1\u03b1\u03c3\u03af\u03b1 \u03bd\u03b5\u03c1\u03bf\u03cd \u03b1\u03c0\u03cc -15\u00b0C \u03c9\u03c2 120\u00b0C . <\/p>\n \u0394\u03b9\u03b1\u03c4\u03af\u03b8\u03b5\u03c4\u03b1\u03b9 \u03bc\u03b5 \u03c1\u03bf\u03c5\u03bb\u03b5\u03bc\u03ac\u03bd NSK \u03b9\u03b1\u03c0\u03c9\u03bd\u03b9\u03ba\u03ae\u03c2 \u03c0\u03c1\u03bf\u03ad\u03bb\u03b5\u03c5\u03c3\u03b7\u03c2. <\/p>\n \u03a4\u03b5\u03c7\u03bd\u03b9\u03ba\u03ac \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03ac \u03b1\u03bd\u03c4\u03bb\u03af\u03b1\u03c2:<\/strong> \u039a\u03ac\u03b8\u03b5\u03c4\u03b7 \u03c0\u03bf\u03bb\u03c5\u03b2\u03ac\u03b8\u03bc\u03b9\u03b1 \u03b1\u03b5\u03c1\u03cc\u03c8\u03c5\u03ba\u03c4\u03b7 \u03b1\u03bd\u03c4\u03bb\u03af\u03b1 CDL2-20 0.5HP \u03bc\u03bf\u03bd\u03bf\u03c6\u03b1\u03c3\u03b9\u03ba\u03ae. \u039c\u03b5 \u03b1\u03bd\u03bf\u03be\u03b5\u03af\u03b4\u03c9\u03c4\u03b5\u03c2 \u03c6\u03c4\u03b5\u03c1\u03c9\u03c4\u03ad\u03c2 \u03ba\u03b1\u03b9 \u03ac\u03be\u03bf\u03bd\u03b1, \u03ba\u03b1\u03c4\u03ac\u03bb\u03bb\u03b7\u03bb\u03b7 \u03b3\u03b9\u03b1 \u03b8\u03b5\u03c1\u03bc\u03bf\u03ba\u03c1\u03b1\u03c3\u03af\u03b1 \u03bd\u03b5\u03c1\u03bf\u03cd \u03b1\u03c0\u03cc -15\u00b0C \u03c9\u03c2 120\u00b0C.<\/p>\n","protected":false},"featured_media":1306,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"yoast_head":"\n
\u039c\u03ac\u03c1\u03ba\u03b1: (\u0399\u03c4\u03b1\u03bb\u03b9\u03ba\u03ae\u03c2 \u03c4\u03b5\u03c7\u03bd\u03bf\u03bb\u03bf\u03b3\u03af\u03b1\u03c2)<\/strong>
\u03a0\u03b9\u03c3\u03c4\u03bf\u03c0\u03bf\u03b9\u03b7\u03c4\u03b9\u03ba\u03cc:\u00a0<\/p>\n
\u2022 \u0399\u03a3\u03a7\u03a5\u03a3: 0.5hp
\u2022 \u03a1\u0395\u03a5\u039c\u0391: \u039c\u03bf\u03bd\u03bf\u03c6\u03b1\u03c3\u03b9\u03ba\u03cc (1) \/ 50Hz
\u2022 \u03a3\u03a4\u039f\u039c\u0399\u039f: 1”(\u03af\u03bd\u03c4\u03c3\u03b1)<\/p>\n\n\n
\n \u03a0\u0391\u03a1\u039f\u03a7\u0397(m\u00b3\/h)<\/td>\n 1<\/td>\n 1.2<\/td>\n 1.6<\/td>\n 2<\/td>\n 2.4<\/td>\n 2.8<\/td>\n 3.2<\/td>\n 3.5<\/td>\n<\/tr>\n \n \u039c\u0391\u039d\u039f\u039c\u0395\u03a4\u03a1\u0399\u039a\u039f(m)<\/td>\n 18<\/td>\n 17<\/td>\n 16<\/td>\n 15<\/td>\n 13<\/td>\n 12<\/td>\n 10<\/td>\n 8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"