Created
June 18, 2015 17:06
-
-
Save mike-gusiev/f26cf63e85ff8e3786c1 to your computer and use it in GitHub Desktop.
RedTram Ticker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="n4p_13714">Loading...</div> | |
<script type="text/javascript" charset="utf-8"> | |
(function(d,s){ | |
var o=d.createElement(s); | |
o.async=true; | |
o.type="text/javascript"; | |
o.charset="utf-8"; | |
if (location.protocol == "https:") { | |
o.src="https://js-goods.redtram.com/ticker_13714.js"; | |
} | |
else { | |
o.src="http://js.grt02.com/ticker_13714.js"; | |
} | |
var x=d.getElementsByTagName(s)[0]; | |
x.parentNode.insertBefore(o,x); | |
})(document,"script"); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ver=2 | |
window.console = window.console || {}; | |
window.console.log = window.console.log || function() {}; | |
if ( ! window.rtInformers ) window.rtInformers = {}; | |
if ( ! window.AddGood ) window.AddGood = function(id, title, desc, cost, vcost, lnk, iid, part, old_price, highlighted) { | |
rtInformers[iid].addGood(id, title, desc, cost, vcost, lnk, iid, part, old_price, highlighted); | |
}; | |
if ( ! window.RedTramAdd ) window.RedTramAdd = function(title, url, src, desc, photo, special) { | |
rtInformers[special].addNews(title, url, src, desc, photo, special); | |
}; | |
if ( ! window.RedTramH ) window.RedTramH = function(id) {} | |
if ( ! window.RedTramF ) window.RedTramF = function(id) {} | |
if ( ! window.rtIsMobile ) window.rtIsMobile = function() { | |
var check = false; | |
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera); | |
return check; | |
} | |
if ( ! window.addResizeListener ) { | |
(function () { | |
var attachEvent = document.attachEvent, | |
stylesCreated = false; | |
if (!attachEvent) { | |
var requestFrame = (function(){ | |
var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || | |
function(fn){ return window.setTimeout(fn, 20); }; | |
return function(fn){ return raf(fn); }; | |
})(); | |
var cancelFrame = (function(){ | |
var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || | |
window.clearTimeout; | |
return function(id){ return cancel(id); }; | |
})(); | |
function resetTriggers(element){ | |
var triggers = element.__resizeTriggers__, | |
expand = triggers.firstElementChild, | |
contract = triggers.lastElementChild, | |
expandChild = expand.firstElementChild; | |
contract.scrollLeft = contract.scrollWidth; | |
contract.scrollTop = contract.scrollHeight; | |
expandChild.style.width = expand.offsetWidth + 1 + 'px'; | |
expandChild.style.height = expand.offsetHeight + 1 + 'px'; | |
expand.scrollLeft = expand.scrollWidth; | |
expand.scrollTop = expand.scrollHeight; | |
}; | |
function checkTriggers(element){ | |
return element.offsetWidth != element.__resizeLast__.width || | |
element.offsetHeight != element.__resizeLast__.height; | |
} | |
function scrollListener(e){ | |
var element = this; | |
resetTriggers(this); | |
if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__); | |
this.__resizeRAF__ = requestFrame(function(){ | |
if (checkTriggers(element)) { | |
element.__resizeLast__.width = element.offsetWidth; | |
element.__resizeLast__.height = element.offsetHeight; | |
element.__resizeListeners__.forEach(function(fn){ | |
fn.call(element, e); | |
}); | |
} | |
}); | |
}; | |
/* Detect CSS Animations support to detect element display/re-attach */ | |
var animation = false, | |
animationstring = 'animation', | |
keyframeprefix = '', | |
animationstartevent = 'animationstart', | |
domPrefixes = 'Webkit Moz O ms'.split(' '), | |
startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), | |
pfx = ''; | |
{ | |
var elm = document.createElement('fakeelement'); | |
if( elm.style.animationName !== undefined ) { animation = true; } | |
if( animation === false ) { | |
for( var i = 0; i < domPrefixes.length; i++ ) { | |
if( elm.style[ domPrefixes[i] + 'AnimationName' ] !== undefined ) { | |
pfx = domPrefixes[ i ]; | |
animationstring = pfx + 'Animation'; | |
keyframeprefix = '-' + pfx.toLowerCase() + '-'; | |
animationstartevent = startEvents[ i ]; | |
animation = true; | |
break; | |
} | |
} | |
} | |
} | |
var animationName = 'resizeanim'; | |
var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; | |
var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; | |
} | |
function createStyles() { | |
if (!stylesCreated) { | |
//opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 | |
var css = (animationKeyframes ? animationKeyframes : '') + | |
'.resize-triggers { ' + (animationStyle ? animationStyle : '') + 'visibility: hidden; opacity: 0; } ' + | |
'.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', | |
head = document.head || document.getElementsByTagName('head')[0], | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
if (style.styleSheet) { | |
style.styleSheet.cssText = css; | |
} else { | |
style.appendChild(document.createTextNode(css)); | |
} | |
head.appendChild(style); | |
stylesCreated = true; | |
} | |
} | |
window.addResizeListener = function(element, fn){ | |
if (attachEvent) element.attachEvent('onresize', fn); | |
else { | |
if (!element.__resizeTriggers__) { | |
if (getComputedStyle(element).position == 'static') element.style.position = 'relative'; | |
createStyles(); | |
element.__resizeLast__ = {}; | |
element.__resizeListeners__ = []; | |
(element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; | |
element.__resizeTriggers__.innerHTML = '<div class="expand-trigger"><div></div></div>' + | |
'<div class="contract-trigger"></div>'; | |
element.appendChild(element.__resizeTriggers__); | |
resetTriggers(element); | |
element.addEventListener('scroll', scrollListener, true); | |
/* Listen for a css animation to detect element display/re-attach */ | |
animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function(e) { | |
if(e.animationName == animationName) | |
resetTriggers(element); | |
}); | |
} | |
element.__resizeListeners__.push(fn); | |
} | |
}; | |
})(); | |
} | |
rtInformers[13714] = (function() { | |
var | |
informer = function() { | |
var _this = this, | |
imagePlacement = 3, | |
text_align = 1, | |
row_count = 0, | |
col_count = 0, | |
classname = (!+"\v1" && (navigator.appVersion.indexOf('MSIE 8.0') == -1)) ? 'className' : 'class', | |
showTime = parseInt(new Date().getTime() / 1000), | |
img_scale = 1, | |
img_rotatation = 0, | |
img_use_effects = 0, | |
rtn4p_page, | |
oHead = document.getElementsByTagName('head')[0], | |
newsPos = 1, | |
goodPos = 1, | |
pathLink = 'https://client.redtram.com', | |
maxTeasers = 1 * 3, | |
maxCols = 1, | |
imageSize = 150, | |
adpt = new Array(), | |
adptCols = 0, | |
adptFirst = true, | |
isMobile = window.rtIsMobile(), | |
refreshDelay = 5, | |
container = document.getElementById('n4p_13714'), | |
isInitStat = false, | |
statInterval; | |
this.getLabel = function() { | |
return '<a href="https://client.redtram.com" target="_blank" style="display:block !important;text-decoration:none;width:100px !important;overflow:hidden !important;outline:0;margin:0 0 3px !important;padding:2px !important;height:11px !important;font:11px/11px verdana !important;color:black!important;background:none!important;"><span style="color:#f11e26 !important;">Red</span>Tram Goods</a>'; | |
} | |
this.init = function() { | |
var tbl = document.createElement("table"); | |
tbl.setAttribute('id', "rt_table_13714"); | |
tbl.setAttribute(classname, "rt_table_13714"); | |
tbl.setAttribute("cellpadding", "0"); | |
tbl.setAttribute("cellspacing", "0"); | |
if ( isMobile ) { | |
tbl.setAttribute("style", "display:none"); | |
} | |
// For old informers | |
if (!container) { | |
container = document.getElementById('rt-n-13714'); | |
} | |
// Add noindex | |
if (true) { | |
var noindex = document.createElement("noindex"); | |
container.innerHTML = ''; | |
container.appendChild(noindex); | |
container = noindex; | |
} | |
// Add label | |
container.innerHTML = false ? this.getLabel() : ''; | |
// Append table | |
container.appendChild(tbl); | |
// Cookie | |
this.rtn4p_RedTramCookies(); | |
// | |
if (window != window.top && this.isIE()) { | |
rtn4p_page = Math.floor(Math.random() * 4) + 1; | |
} | |
// Style | |
this.initStyle(); | |
// Script | |
this.initScript(); | |
if ( isMobile ) { | |
container = document.getElementById('n4p_13714'); | |
// Init adaptive data | |
this.initAdaptiveData(); | |
// Resize adaptive | |
this.initResize(); | |
} | |
} | |
this.rt_txt_align = function (default_align) { | |
var | |
ret_val = default_align; | |
if (text_align != 0) { | |
switch (text_align) { | |
case 1: | |
ret_val = 'center'; | |
break; | |
case 2: | |
ret_val = 'left'; | |
break; | |
case 3: | |
ret_val = 'right'; | |
break; | |
} | |
} | |
return ret_val; | |
} | |
this.isIE = function() { | |
return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent); | |
} | |
this.initAdaptiveData = function() { | |
var min_w, i = 0, w = 0, adptMinWidth = 1024, d = {}; | |
if (imagePlacement == 1 || imagePlacement == 2) { | |
min_w = imageSize / 0.36 >> 0; | |
min_w = min_w < 200 ? 200 : min_w; | |
} | |
else if (imagePlacement == 3) { | |
min_w = imageSize < 120 ? 120 : imageSize; | |
min_w = min_w * 1.2 >> 0; | |
} | |
else { | |
min_w = 144; | |
} | |
do { | |
w = min_w * i; | |
if (i == 0) { | |
d = { | |
'm': 0, | |
'c': 1, | |
'w': '100%' | |
}; | |
} | |
else if (w > adptMinWidth) { | |
d = { | |
'm': adptMinWidth, | |
'c': maxCols | |
}; | |
d['w'] = (100 / d.c).toFixed(2) + '%'; | |
} | |
else { | |
d = { | |
'm': w, | |
'c': i > maxCols ? maxCols : i | |
}; | |
d['w'] = (100 / d.c).toFixed(2) + '%'; | |
} | |
adpt.unshift(d); | |
i++; | |
} | |
while ( adptMinWidth > w); | |
} | |
this.initAdaptive = function() { | |
var i, tds, tr, td, | |
table = document.getElementById('rt_table_13714'), | |
arr = [], rows = 0, maxRows; | |
for ( i in adpt ) { | |
if ( container.offsetWidth > adpt[i].m ) { | |
if ( adptCols != adpt[i].c ) { | |
adptCols = adpt[i].c; | |
tds = document.getElementsByClassName('rt_td_13714'); | |
for (var j = tds.length - 1; j >= 0; j--) { | |
td = tds[j].parentNode.removeChild(tds[j]); | |
td.setAttribute('width', adpt[i].w); | |
arr.unshift(td); | |
} | |
} | |
break; | |
} | |
} | |
if ( arr.length ) { | |
table.innerHTML = ''; | |
maxRows = arr.length / adptCols >> 0; | |
for (i in arr) { | |
if (i % adptCols == 0) { | |
tr = document.createElement('tr'); | |
table.appendChild(tr); | |
rows++; | |
if (rows > maxRows && rows > 1) { | |
tr.setAttribute('style', 'display:none;'); | |
} | |
} | |
tr.appendChild(arr[i]); | |
} | |
} | |
} | |
this.initResize = function() { | |
//if (13714 == 194 || 13714 == 20166) return; | |
var i, c; | |
i = setInterval(function() { | |
var cnt = document.getElementsByClassName('rt_td_13714').length; | |
if (cnt == 0) return; | |
if (cnt != maxTeasers && cnt == c) { | |
c = cnt; | |
return; | |
} | |
if (adptFirst) { | |
_this.initAdaptive.call(_this); | |
document.getElementById("rt_table_13714").removeAttribute('style'); | |
adptFirst = false; | |
} | |
addResizeListener(container, function() { | |
_this.initAdaptive.call(_this); | |
}); | |
clearInterval(i); | |
}, 100); | |
} | |
this.initStyle = function() { | |
var css = '', | |
style = document.createElement('style'); | |
css += '.rt_clear{clear:both}'; | |
css += '.rt_table_13714{width:100%;background-color:transparent!important;border-spacing:5px;border-collapse:' + (true ? 'collapse' : 'separate') + '!important;border:0px solid #dfdfdf!important;border-radius: 0px!important;-moz-border-radius: 0px!important; -webkit-border-radius: 0px!important;padding:0!important;}'; | |
css += '.rt_td_13714{padding:3px!important;vertical-align:top!important;' + (true ? 'border:0px solid #eeeeee!important;' : '') + '}'; | |
css += '.rt_td_13714.highlighted{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAD1JREFUGFcdikEOwDAMwvj/Q6csu21ZFXqhpT5YwgJ6QvXZc4qE6tV9afw6QBkaZZPqhm8btlMGnDd9dsYCUsdIchPvoPEAAAAASUVORK5CYII=")!important;border:2px solid #ea1213!important;}'; | |
css += '.rt_block_13714{' + (true ? '' : 'border:0px solid #eeeeee!important;') + 'border-radius: 0px;-moz-border-radius: 0px;-webkit-border-radius: 0px;padding: 0px;}'; | |
css += '.rt_photo_13714{width:130px!important;height:130px;background:#fff;border:0px solid #eeeeee!important;-moz-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';-webkit-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';border-radius: 0' + (0 == 50 ? '%' : 'px') + ';' + (5 > 0 ? ('box-shadow:' + (3 == 2 ? '-' : '') + '1px 1px 5px rgba(0,0,0,.7)!important;') : '') + 'padding:0px;position:relative;}'; | |
css += '.rt_photo_13714 img{max-width:none!important;width:150px!important;height:150px!important;margin:' + parseInt((130 - 150) / 2) + 'px 0 0 ' + parseInt((130 - 150) / 2) + 'px!important;padding:0!important;}'; | |
css += '.rt_title_13714_div{line-height:' + (12 + 2) + 'px;' + (false ? 'margin:0 5px;' : '') + '}'; | |
css += '.rt_title_13714,.rt_title_13714:visited{white-space:normal!important;font-style:normal!important;font-weight:bold!important;font-size:12px!important;line-height:' + (12 + 2) + 'px!important;font-family:Inherit!important;color:#000000 !important;text-decoration:none !important;text-transform:none !important;background:none!important;padding:0!important;}'; | |
css += '.rt_title_13714:hover,.rt_title_13714:active{color:#000000!important;text-decoration:none !important;background:none!important;padding:0!important;}'; | |
css += '.rt_descr_13714_div{margin-top:3px;line-height:14px}'; | |
css += '.rt_descr_13714{white-space:normal!important;font-style:normal!important;font-weight:normal!important;font-size:12px!important;line-height:' + (12 + 2) + 'px!important;font-family:Inherit!important; color:#000000 !important; text-decoration:none !important; text-transform:none !important;}'; | |
css += '.rt_descr_13714:hover{color:#000000 !important; text-decoration:none !important;}'; | |
css += '.rt_source_13714{text-decoration: none !important; color: #000 !important; font-family: tahoma !important; font-weight: normal !important; font-size: 10px !important; text-transform: none !important; font-style: normal !important;}'; | |
css += '.rt_photo_13714 .rt_image_13714{display:block !important;width:100% !important;height:100% !important;overflow:hidden !important;background:none!important;margin:0!important;padding:0!important;-moz-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';-webkit-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';border-radius: 0' + (0 == 50 ? '%' : 'px') + ';}'; | |
css += '.rt_photo_13714 .age_restriction{display:block!important;width:18px!important;height:18px!important;font:10px/18px "Comic Sans MS",tahoma!important;color:#fff!important;text-align:center!important;background:#c81f1f!important;border:1px solid #fff!important;border-radius:11px!important;-moz-border-radius:11px!important;-webkit-border-radius:11px!important;position:absolute!important;' + (false ? 'top:' : 'bottom:') + (0 + 1) + 'px!important;right:' + (0 + 1) + 'px!important;z-index:100!important;overflow:hidden!important}'; | |
if ( false ) { | |
css += '.rt_blackout_13714{display:block !important;width:100% !important;height:100% !important;background:#000 !important;filter: alpha(opacity=0);opacity:0 !important;position:absolute !important;top:0 !important;left:0 !important;z-index:101 !important;transition:all .5s !important;-moz-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';-webkit-border-radius: 0' + (0 == 50 ? '%' : 'px') + ';border-radius: 0' + (0 == 50 ? '%' : 'px') + ';}'; | |
css += '.rt_photo_13714 a:hover .rt_blackout_13714{filter: alpha(opacity=40);opacity:.4 !important;}'; | |
} | |
if ( false ) { | |
css += '.rt_source_13714,.rt_source_13714:visited,.rt_source_13714:hover{display:block;}'; | |
} | |
if (imagePlacement == 1) { | |
css += '.rt_block_13714{text-align:' + this.rt_txt_align('left') + '!important;}'; | |
if ( ! false) { | |
css += '.rt_main_13714{margin-left:' + (130 + (0 + 0) * 2 + 10 + (false ? 6 : 0)) + 'px!important;}'; | |
} | |
css += '.rt_photo_13714{float:left}.rt_photo_13714 img{margin-bottom:5px!important;}'; | |
css += '.rt_price_13714{text-align:right!important;margin:0 5px!important;}'; | |
} | |
if (imagePlacement == 2) { | |
css += '.rt_block_13714{text-align:' + this.rt_txt_align('right') + '!important;}'; | |
if ( ! false) { | |
css += '.rt_main_13714{margin-right:' + (130 + (0 + 0) * 2 + 10 + (false ? 6 : 0)) + 'px!important;}'; | |
} | |
css += '.rt_photo_13714{float:right!important;}'; | |
css += '.rt_photo_13714 img{margin-bottom:5px!important;}'; | |
css += '.rt_price_13714{text-align:left!important;margin:0 5px!important;}'; | |
} | |
if (imagePlacement == 3) { | |
css += '.rt_block_13714{text-align:' + this.rt_txt_align('center') + '!important;}'; | |
css += '.rt_photo_13714{margin:0 auto 5px!important;}'; | |
css += '.rt_price_13714{padding-left:5px!important;margin:0 5px!important;}'; | |
} | |
if (false) { | |
css += '.rt_price_13714{margin:0!important;}'; | |
} | |
if (img_scale > 1 || img_rotatation != 0) { | |
if ( img_use_effects ) { | |
css += '.rt_photo_13714{transition:all .5s}'; | |
css += '.rt_photo_13714:hover{position:relative!important;z-index:1!important;transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';'; | |
css += '-ms-transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';'; | |
css += '-webkit-transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';}'; | |
} | |
else { | |
css += '.rt_photo_13714 img{transition:all .5s}'; | |
css += '.rt_photo_13714 a:hover img{transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';'; | |
css += '-ms-transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';'; | |
css += '-webkit-transform:'; | |
if (img_scale > 1) { | |
css += ' scale(' + img_scale + ')'; | |
} | |
if (img_rotatation != 0) { | |
css += ' rotate(' + img_rotatation + 'deg)'; | |
} | |
css += ';}'; | |
} | |
} | |
if ( false ) { | |
css += '.rt_main_13714{width:100%!important;position:absolute!important;left:0!important;bottom:0!important;background:rgba(0,0,0,0.5)!important;padding:8px 0!important;}'; | |
css += '.rt_price_13714{text-align:center!important;}'; | |
} | |
if ( false ) { | |
css += '.rt_price_13714_div{text-align:right;margin: 3px 0 0;}'; | |
css += '.rt_price_13714,.rt_old_price_13714{font-style: normal!important; font-weight: bold!important; font-size: 10px!important; font-family: Inherit!important; color: #666666!important; text-decoration: none!important; text-transform: none!important;}'; | |
css += '.rt_price_13714{display: inline-block!important;}'; | |
css += '.rt_old_price_13714{display: inline-block!important; font-size: 10px!important; position: relative!important; color: #aaa!important; padding: 0 5px!important;}'; | |
css += '.rt_old_price_13714:after{content: ""!important; display: block!important; width: 100%!important; height: 100%!important; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAAAYCAYAAAA74FWfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAYTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjarXlnUBRrt/XuMAGGIeecc85BkJxzBkUYYIQhMyTBQBBRRFFBkSCoiAiIYiIeDCBmRARFzCgioOhBFBFJ3w/R877n1vfjVt3nR9fq1Wvvvfburu7qbgARQVpCQgzKCRAbl8z0tLOU9A8IlCS9AlbgAh7gAhItLCnBwt3dGf6/6/sQIAAAg2q0hIQY+N8trnB6UhgA4g4AoeFJYbEAyCUAXDgsgZkMQOgHAJm05IRkAMI3AOBl+gcEAhDJAMAb8QuLAgBv6C+sCQC8TG9PKwCiNQCZjUZjRgCwuwOAZGpYRDIAewIAkTsunBEHwJsLQDQLi6SFAwj3AIBqbGx8OIDwNAAohv5Hnoj/yhn6JyeNFvEH/+oFAADI1oykhBhaOvxfr9iYlN81pAGALZJp7wkAvABIXXS8kycAsAEgnXGhrm4AwA2A3GaEA6ziZ5Ep9j6r+qmwJKtAAOAHQCGcZu0EAKIAKH9KtI/FKtamMQF+6VFXRrKD9yoOZcZ7ruZHU+lJNl6/cSTdwXk15664GNffuGojw9YBADgB0EsZkd5+v3yiPakMX1cAYAdA+5OivZxW9a8yIq1cf2uYKZ4+ACALgH7byLT1/KXBBGOTfveFqYfRbLwAQBAAM0+O9Lb/FYv505P8nX97C6db2/zygIXT43xWPWPJCcmWnquxeQkx7qt6rIoeY+f5a87YuaRUr9+xA8lM79WZY2+jaI7uv/xj3xOS3b1/ecNxcAYrsAZJSAFJCIV4iAJG31TrFEiuHrEFGjAhAuigtsr8jvADGjAhDmjgBRnwCeKADkl/4iyBBkygQyrEwdIf9tdWDTYCDZiQCnRIgmh4D0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aCVlpprdjaJrvf/2OozbJWbS2KUvACxXsv8UXOsCezSfCNUiZnIASWfZX5ZfLkyUgJL4FDYAd4Hs4Cn/GR9CjLcuY3KWEeyPQYAttADvxQHM8MlLHAT7+UCYNo/TMsK46RAbMBvDVAApg9gVO/xAmDaEEyAB7pCpIrmCGwBEwUSqFIdgTe+2VPGEQHlOvAliLJzPmKIrFHIXDk05EwiA4od3QFsVC2gU/mkRMePxOB3z5NCYNoQSLAakOQXQf2TS4pFMu+QOnTlyiIDiiXgE2TSwKYRWAcckkAI/DRpzRhEB1QbpnHjQ2yJzaXKJixwDef6oRBdEBZigJsrivMockl4bwrFSAfqYJoQXIBeEi9YMuBB8CLOMhK1ak4iFRBdEC5qq/FcZC9Sb1gK6hq+y8Ooo93CNyOckkA89XkkgAmudreQfw9lJWGfLIBHDQE2T2BMwfRPyQD4HEDlLtMa3ubTz44iH5CuaH5JA6yA+oF27mr7R3E/4WyGOWSEfCEqlCLg+xE4NhB9A+JAGsNQXYNeN0QZN/8y9reQZxfKJepSjWbTzKqj4MF9f0nT6X6OOggeghlzuSSoQHzi2jLo74Wf3cQ/YRyn9ktj5tUbzZxkH3VVts7iLSRXGRa22dmNVmhXtuH3WzvHEQ/oYTaPjerSgZcI9ryqFB89BTKArNbHu/9AQAA//8DAIE878FYbP8QAAAAAElFTkSuQmCC") no-repeat 50% 50%!important; position: absolute!important; left: 0!important; top: 0!important;}'; | |
if ( ! false || imagePlacement == 0) { | |
css += '.rt_price_13714{margin-top: 5px!important;}'; | |
} | |
else { | |
if (imagePlacement != 3) { | |
css += '.rt_photo_13714{margin-left: 6px!important;}'; | |
} | |
css += '.rt_price_13714{white-space: nowrap!important; background: #d02c30!important; box-shadow: 1px 1px 3px #444!important; padding: 4px 5px!important; position: absolute!important; top: 5px!important; left: -' + (0 + 8) + 'px!important; border: 1px solid #fff!important; -moz-border-radius: 0 3px 3px 0!important; -webkit-border-radius: 0 3px 3px 0!important; border-radius: 0 3px 3px 0!important;}'; | |
css += '.rt_price_13714:before{content: ""!important; border-top: 8px solid #d02c30!important; border-left: 8px solid transparent!important; position: absolute!important; left: 0!important; top: 100%!important; margin: 1px 0 0 -1px!important;}'; | |
css += '.rt_price_13714:after{content: ""!important; border-top: 8px solid rgba(0,0,0,.2)!important; border-left: 8px solid transparent!important; position: absolute!important; left: 0!important; top: 100%!important; margin: 1px 0 0 -1px!important;}'; | |
} | |
} | |
style.type = 'text/css'; | |
if (style.styleSheet) { | |
style.styleSheet.cssText = css; | |
} | |
else { | |
style.appendChild(document.createTextNode(css)); | |
} | |
oHead.appendChild(style); | |
} | |
this.initScript = function() { | |
var s = document.createElement("script"), | |
host = location.protocol == 'https:' ? 'https://g4p.redtram.com/' : 'http://g4p.grt03.com/', | |
ref2 = document.referrer == "" ? "" : document.referrer.split('/')[2].replace('www.',''); | |
s.async = ""; | |
s.type = "text/javascript"; | |
s.charset = "utf-8"; | |
s.src = host + '?i=13714&rtg_page=' + rtn4p_page + '&ref2=' + ref2; | |
if (location.protocol == "file:") { | |
s.src = s.src.replace('file:', 'http:'); | |
} | |
oHead.appendChild(s); | |
} | |
this.setCookie = function(name, value, expires, path, domain, secure) { | |
document.cookie = name + "=" + encodeURIComponent(value) | |
+ (expires ? ";expires=" + expires.toGMTString() : "") | |
+ (path ? ";path=" + path : "") | |
+ (domain ? ";domain=" + domain : "") | |
+ (secure ? ";secure" : ""); | |
} | |
this.getCookie = function(name) { | |
var dc = document.cookie; | |
var prefix = name + "="; | |
var begin = dc.indexOf("; " + prefix); | |
if (begin == -1) { | |
begin = dc.indexOf(prefix); | |
if (begin != 0) { | |
return null; | |
} | |
} | |
else { | |
begin += 2; | |
} | |
var end = dc.indexOf(";", begin); | |
if (end == -1) { | |
end = dc.length; | |
} | |
return decodeURIComponent(dc.substring(begin + prefix.length, end)); | |
} | |
this.rtn4p_RedTramCookies = function(value) { | |
var | |
cn = "rgoods_1"; | |
if (value) { | |
rtn4p_page = value; | |
} | |
else { | |
var c = this.getCookie(cn); | |
if (c != null && parseInt(c) < 5) { | |
rtn4p_page = parseInt(c) + 1; | |
} | |
else { | |
rtn4p_page = 1; | |
} | |
this.setCookie(cn, rtn4p_page, "", "/"); | |
} | |
} | |
this.toword = function(str, letter, limit) { | |
if (str.length <= letter) { | |
return str; | |
} | |
if (limit == undefined) { | |
limit = ''; | |
} | |
var word = str.split(" "); | |
str = word[0] + ' '; | |
for (var i = 1; i < word.length; i++) { | |
if ( (str + word[i]).length > letter ) { | |
return (str + " " + limit).replace(/(^\s+)|(\s+$)/g, ""); | |
} | |
else { | |
str += word[i] + " "; | |
} | |
} | |
return str.replace(/(^\s+)|(\s+$)/g, ""); | |
} | |
this.tolower = function(title) { | |
var letter, cnt, | |
titleArr = title.split(' '); | |
for (var y = 0; y< titleArr.length; y++) { | |
cnt = 0; | |
for (letter = 0; titleArr[y].length > letter; letter++) { | |
if (titleArr[y][letter].toLowerCase() != titleArr[y][letter]) cnt++; | |
} | |
titleArr[y] = cnt > 3 ? titleArr[y].toLowerCase() : titleArr[y]; | |
} | |
return titleArr.join(' '); | |
} | |
this.base64_encode = function( data ) { | |
var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, enc = '', | |
b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
do { | |
o1 = data.charCodeAt(i++); | |
o2 = data.charCodeAt(i++); | |
o3 = data.charCodeAt(i++); | |
bits = o1<<16 | o2<<8 | o3; | |
h1 = bits>>18 & 0x3f; | |
h2 = bits>>12 & 0x3f; | |
h3 = bits>>6 & 0x3f; | |
h4 = bits & 0x3f; | |
enc += b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); | |
} | |
while (i < data.length); | |
switch( data.length % 3 ) { | |
case 1: | |
enc = enc.slice(0, -2) + '=='; | |
break; | |
case 2: | |
enc = enc.slice(0, -1) + '='; | |
break; | |
} | |
return enc; | |
} | |
this.addGood = function(id, title, desc, cost, vcost, lnk, iid, part, old_price, highlighted) { | |
if (row_count >= 3 && col_count >= 1) return true; | |
var tmp_ak = akg[iid], | |
url = 'http://goods.redtram.com/go/' + iid + '/' + id + '/', | |
max_desc = 40, | |
max_title = 60, | |
row; | |
a = 'a=' + iid + | |
'&b=' + id + | |
'&c=' + lnk.replace(/&/gi, '+||+') + | |
'&d=' + document.referrer.replace(/&/gi, '+||+') + | |
'&e=' + document.location.href.replace(/&/gi, '+||+') + | |
'&f=0' + | |
'&ak=' + tmp_ak + | |
'&part=' + part; | |
url += this.base64_encode(a) + '?ref=' + encodeURIComponent(document.location.href); | |
url += '&tmload=' + (typeof show_time_13714 != 'undefined' ? show_time_13714 : showTime); | |
url += '&page=' + rtg_page_13714; | |
url += '&pos=' + goodPos; | |
goodPos++; | |
if ( false ) { | |
title = this.tolower(title); | |
desc = this.tolower(desc); | |
} | |
if (desc.length > max_desc) { | |
desc = this.toword(desc, max_desc, '..'); | |
} | |
if (title.length > max_title && max_title > 0) { | |
title = this.toword(title, max_title, '..'); | |
} | |
if (row_count == 0 || col_count == 1) { | |
row = document.createElement("tr"); | |
document.getElementById('rt_table_13714').appendChild(row); | |
row_count++; | |
col_count = 0; | |
} | |
else { | |
row = document.getElementById('rt_table_13714').getElementsByTagName("TR")[row_count-1]; | |
} | |
var td = document.createElement("td"); | |
td.setAttribute(classname, "rt_td_13714" + ((typeof highlighted != 'undefined' && highlighted) ? ' highlighted' : '')); | |
td.setAttribute("valign", "top"); | |
td.setAttribute("width", parseInt(100 / 1) + "%"); | |
row.appendChild(td); | |
col_count++; | |
divp = document.createElement("div"); | |
divp.setAttribute(classname, "rt_block_13714"); | |
td.appendChild(divp); | |
div_photo = document.createElement("div"); | |
div_photo.setAttribute(classname, "rt_photo_13714"); | |
if (3 == 0) div_photo.style.display = "none"; | |
divp.appendChild(div_photo); | |
a_img = document.createElement("a"); | |
a_img.setAttribute(classname, "rt_image_13714"); | |
a_img.setAttribute("target", "_blank"); | |
a_img.setAttribute("href", url);a_img.setAttribute("rel", "nofollow");div_photo.appendChild(a_img); | |
pathImages = location.protocol == "https:" ? "http://img3.grt02.com/150x150/" : "http://img3.grt02.com/150x150/"; | |
img_i = document.createElement("img"); | |
img_i.setAttribute("src", pathImages + id + ".jpg"); | |
img_i.setAttribute("border", "0"); | |
a_img.appendChild(img_i); | |
divt = document.createElement("div"); | |
divt.setAttribute(classname, "rt_main_13714"); | |
if ( false ) { | |
div_photo.appendChild(divt); | |
} | |
else { | |
divp.appendChild(divt); | |
} | |
divtit = document.createElement("div"); | |
divtit.setAttribute(classname, "rt_title_13714_div"); | |
divt.appendChild(divtit); | |
a_tit = document.createElement("a"); | |
a_tit.setAttribute("target", "_blank"); | |
a_tit.setAttribute(classname, "rt_title_13714"); | |
a_tit.setAttribute("href", url); | |
a_tit.setAttribute("rel", "nofollow"); | |
divtit.appendChild(a_tit); | |
a_tit.innerHTML = title; | |
if ( ! false ) { | |
} | |
divcl = document.createElement("div"); | |
divcl.setAttribute(classname, "rt_clear"); | |
divp.appendChild(divcl); | |
if ( false && cost > 0) { | |
div_price = document.createElement("div"); | |
div_price.setAttribute(classname, "rt_price_13714_div"); | |
divt.appendChild(div_price); | |
if (old_price > 0) { | |
op = document.createElement("a"); | |
op.setAttribute("target", "_blank"); | |
op.setAttribute(classname, "rt_old_price_13714"); | |
op.setAttribute("href", url); | |
op.setAttribute("rel", "nofollow"); | |
op.innerHTML = this.modifyPrice(old_price) + ' ' + vcost; | |
div_price.appendChild(op); | |
} | |
a_cost = document.createElement("a"); | |
a_cost.setAttribute("target", "_blank"); | |
a_cost.setAttribute(classname, "rt_price_13714"); | |
a_cost.setAttribute("href", url); | |
a_cost.setAttribute("rel", "nofollow"); | |
if ( ! false || imagePlacement == 0 ) { | |
div_price.appendChild(a_cost); | |
} | |
else { | |
div_photo.appendChild(a_cost); | |
} | |
a_cost.innerHTML = this.modifyPrice(cost) + ' ' + vcost; | |
} | |
//this.addItem(id); | |
// init stat event | |
if (!isInitStat) { | |
isInitStat = true; | |
//setTimeout(this.initStat, 500); | |
} | |
} | |
this.addNews = function(title, id, src, desc, photo, special) { | |
if (row_count >= 3 && col_count >= 1) return true; | |
rtn4p_domain = rtn4p_domain.replace('http:', ''); | |
var url = rtn4p_domain + 'cp/' + id + '/n4p/' + special + '?q=' + ak[0] + '&page=' + rt_page_13714 + '&pos=' + newsPos + '&ref=' + encodeURIComponent(document.location.href), | |
max_title = 60, | |
max_desc = 30, | |
row; | |
// Increment news counter | |
newsPos++; | |
if ( false ) { | |
title = this.tolower(title); | |
desc = this.tolower(desc); | |
} | |
if (desc.length > max_desc) { | |
desc = this.toword(desc, max_desc, '..'); | |
} | |
if (title.length > max_title && max_title > 0) { | |
title = this.toword(title, max_title, '..'); | |
} | |
if (row_count == 0 || col_count == 1) { | |
row = document.createElement("tr"); | |
document.getElementById('rt_table_13714').appendChild(row); | |
row_count++; | |
col_count = 0; | |
} | |
else { | |
row = document.getElementById('rt_table_13714').getElementsByTagName("TR")[row_count-1]; | |
} | |
var td = document.createElement("td"); | |
td.setAttribute(classname, "rt_td_13714"); | |
td.setAttribute("width", parseInt(100 / 1) + "%"); | |
row.appendChild(td); | |
col_count++; | |
divp = document.createElement("div"); | |
divp.setAttribute(classname, "rt_block_13714"); | |
td.appendChild(divp); | |
div_photo = document.createElement("div"); | |
div_photo.setAttribute(classname, "rt_photo_13714"); | |
if (3 == 0) div_photo.style.display = "none"; | |
divp.appendChild(div_photo); | |
a_img = document.createElement("a"); | |
a_img.setAttribute(classname, "rt_image_13714"); | |
a_img.setAttribute("target", "_blank"); | |
a_img.setAttribute("href", url);a_img.setAttribute("rel", "nofollow");div_photo.appendChild(a_img); | |
pathImages = location.protocol == "https:" ? "http://img3.grt02.com/150x150/" : "http://img3.grt02.com/150x150/"; | |
img_i = document.createElement("img"); | |
img_i.setAttribute("src", pathImages + id + ".jpg"); | |
img_i.setAttribute("border", "0"); | |
a_img.appendChild(img_i); | |
divt = document.createElement("div"); | |
divt.setAttribute(classname, "rt_main_13714"); | |
if ( false ) { | |
div_photo.appendChild(divt); | |
} | |
else { | |
divp.appendChild(divt); | |
} | |
divtit = document.createElement("div"); | |
divtit.setAttribute(classname, "rt_title_13714_div"); | |
divt.appendChild(divtit); | |
a_tit = document.createElement("a"); | |
a_tit.setAttribute("target", "_blank"); | |
a_tit.setAttribute(classname, "rt_title_13714"); | |
a_tit.setAttribute("href", url); | |
a_tit.setAttribute("rel", "nofollow"); | |
divtit.appendChild(a_tit); | |
a_tit.innerHTML = title; | |
if ( ! false ) { | |
} | |
divcl = document.createElement("div"); | |
divcl.setAttribute(classname, "rt_clear"); | |
divp.appendChild(divcl); | |
if ( ! false && false && src.length ) { | |
a_src = document.createElement("a"); | |
a_src.setAttribute("target", "_blank"); | |
a_src.setAttribute(classname, "rt_source_13714"); | |
a_src.setAttribute("href", pathLink + 'sources/' + src + '/'); | |
a_src.setAttribute("rel", "nofollow"); | |
divt.appendChild(a_src); | |
a_src.innerHTML = src; | |
} | |
this.addItem(id); | |
// init stat event | |
if (!isInitStat) { | |
isInitStat = true; | |
setTimeout(this.initStat, 500); | |
} | |
} | |
this.initStat = function() { | |
statInterval = setInterval(function() { _this.checkVisibility.call(_this) }, 100); | |
} | |
this.checkVisibility = function() { | |
if ( this.elementInViewport(container) ) { | |
clearInterval(statInterval); | |
this.sendStat(); | |
} | |
} | |
this.elementInViewport = function(el) { | |
var rect = el.getBoundingClientRect(); | |
return rect.top >= 0 | |
&& rect.left >= 0 | |
&& (rect.top + 30) <= (window.innerHeight || document.documentElement.clientHeight); | |
} | |
this.addItem = function(id) { | |
var ids = container.getAttribute('data-ids'); | |
container.setAttribute('data-ids', ids ? ids + ',' + id : id) | |
} | |
this.sendStat = function() { | |
var pixel = document.createElement("img"); | |
pixel.setAttribute('width', 1); | |
pixel.setAttribute('height', 1); | |
pixel.setAttribute('src', 'http://goods.redtram.com/shows/?i=13714&tiz=' + container.getAttribute('data-ids')); | |
pixel.style.position = 'absolute'; | |
container.appendChild(pixel); | |
} | |
this.modifyPrice = function(price) { | |
return parseInt(price) == parseFloat(price) ? parseInt(price).toString() : price; | |
} | |
this.init(); | |
} | |
return new informer(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment