function trv_download_center_download(articleID, isIFrame, typ, hash)
{
$.trv_postJson({
module_name: "download_center",
ajax_type: "DOWNLOADCENTER_ENABLED",
parameter: {
articleID: articleID,
typ: typ
},
onSuccess: function(data)
{
if (data.success == 1)
{
if(data.text!="")
{
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
confirmDialog("Datenschutzerklärung","trv_download_center_get_file("+articleID+", "+isIFrame+")",data.text);
}
else
{
trv_download_center_get_file(articleID, isIFrame, typ);
}
}
else
{
var error=0;
if(typ=='sponsored'){trv_download_center_open_registration_sponsored(isIFrame, 'sponsored', articleID); error+=1;}
if(typ=='AGB'){trv_download_center_get_file(articleID, isIFrame); error+=1;}
if(typ=='Flyer'){ trv_download_center_get_file(articleID, isIFrame); error+=1;}
if(error==0){trv_download_center_open_registration_sponsored(isIFrame, 'article', articleID);}
}
}
});
}
function trv_download_center_download_finish_register(articleID, isIFrame, hash, typ, url)
{
$.trv_postJson({
module_name: "download_center",
ajax_type: "DOWNLOADCENTER_ENABLED",
parameter: {
articleID: articleID,
hash: hash,
typ: typ,
url: url
},
onSuccess: function(data)
{
if (data.success == 1)
{
if(data.text!="")
{
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
confirmDialog("Datenschutzerklärung","trv_download_center_get_file("+articleID+", "+isIFrame+")",data.text);
}
else
{
trv_download_center_get_file(articleID, isIFrame)
}
}
else
{
trv_download_center_open_registration(isIFrame, hash, articleID, typ, url);
}
}
});
}
function trv_download_center_get_file(articleID, isIFrame, typ, onetime)
{
if(onetime==1){
var oneDownload=1;
}else{
var oneDownload=0;
}
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "DOWNLOADCENTER_FILE_CHECK",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
articleID: articleID,
oneDownload: oneDownload
},
function(data)
{
if (data == 1)
{
if (typeof _paq !== 'undefined')
{
var parameter = ['trackEvent', 'downloadcenter', 'download article'];
parameter.push(articleID);
_paq.push(parameter);
}
location.href = "https://www.it-matchmaker.com/core/modules/download_center/components/get_file.php?id="+articleID+"&oD="+oneDownload+"&isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452";
}
else
{
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
infoDialog("FEHLER","Interner Fehler: Das angeforderte Dokument
kann nicht auf dem Server gefunden werden!
Der Fehler wurde an die Trovarit AG automatisch gemeldet.",null,600,null, position);
}
});
}
function trv_download_center_open_registration(isIFrame, hash, articleID, typ)
{
if ($("#trv_module_dialog_download_center_registration").length == 0)
{
blockScreen();
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
$("body").append("
");
$("#trv_module_dialog_download_center_registration").load("https://www.it-matchmaker.com/core/modules/download_center/components/dialog_registration.php?isIFrame="+isIFrame+"&id="+articleID+"&t="+typ+"&hash="+hash+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452").dialog({
close: function(event, ui)
{
moduleDownloadCenterContentChanged(false);
$(this).dialog('destroy');
$("#trv_module_dialog_download_center_registration").remove();
trv_setPiwik(null,"Downloadcenter Registration - Dialog close");
},
beforeClose: function(event, ui)
{
return closeDownloadCenterDialog(isIFrame);
},
closeOnEscape: false,
resizable: false,
position: position,
minHeight: 655,
height: 'auto',
width: 600,
modal: true,
bgiframe: true,
title: "Downloadfreischaltung"
});
}
}
function trv_download_center_open_registration_sponsored(articleID, isIFrame, typ)
{
if ($("#trv_module_dialog_download_center_registration").length == 0)
{
blockScreen();
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
$("body").append("");
$("#trv_module_dialog_download_center_registration_sponsored").load("https://www.it-matchmaker.com/core/modules/download_center/components/dialog_registration_sponsored.php?isIFrame="+isIFrame+"&typ="+typ+"&articleID="+articleID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452").dialog({
close: function(event, ui)
{
moduleDownloadCenterContentChanged(false);
$(this).dialog('destroy');
$("#trv_module_dialog_download_center_registration_sponsored").remove();
trv_setPiwik(null,"Downloadcenter Registration - Dialog close");
},
beforeClose: function(event, ui)
{
return closeDownloadCenterDialog(isIFrame);
},
closeOnEscape: false,
resizable: false,
position: position,
height: 'auto',
width: 600,
modal: true,
bgiframe: true,
title: "Downloadfreischaltung"
});
}
}
var moduleDownloadCenterContentChangedVar = false;
function moduleDownloadCenterContentChanged(changed)
{
moduleDownloadCenterContentChangedVar = changed;
setUnload(changed, "Die Downloadfreischaltung wurde ausgefüllt aber nicht abgesendet!");
}
function closeDownloadCenterDialog(isIFrame)
{
if (moduleDownloadCenterContentChangedVar)
{
confirmCloseDownloadCenterDialog(isIFrame);
return false;
}
return true;
}
function confirmCloseDownloadCenterDialog(isIFrame)
{
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
confirmDialog("BESTÄTIGUNG","moduleDownloadCenterContentChanged(false);$('#trv_module_dialog_download_center_registration').dialog('close');","Die Downloadfreischaltung wurde ausgefüllt aber nicht abgesendet!
Wollen Sie die Downloadfreischaltung wirklich beenden?",null,500,null,position);
}
function trv_download_center_toggle_info(articleID, isIFrame)
{
var source = $("#preview_picture_"+articleID).attr("data");
if (source && !$("#preview_picture_"+articleID).attr("src"))
{
$("#preview_picture_"+articleID).attr("src", source);
}
$('div#trv_module_download_center_article_desc_'+articleID).slideToggle(500,
function(){
if ($('div#trv_module_download_center_article_desc_'+articleID+':visible').length == 1)
{
$('#trv_module_download_center_icon_'+articleID).attr({ src: 'https://www.it-matchmaker.com/core/images/icons/minus.gif'});
}
else
{
$('#trv_module_download_center_icon_'+articleID).attr({ src: 'https://www.it-matchmaker.com/core/images/icons/plus.gif'});
}
if (isIFrame)
{
setIFrameHeight();
}
});
}
function trv_download_center_get_set_tags(type)
{
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "GET_SET_TAG",
type: type,
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,"
},
function(data)
{
$('#trv_module_download_center_set_tags').html(data);
trv_download_center_get_addable_tags(type);
});
}
function trv_download_center_get_addable_tags(type)
{
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "GET_ADDABLE_TAGS",
type: type,
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,"
},
function(data)
{
$('#trv_module_download_center_addable_tags').html(data);
unblockScreen();
});
}
function trv_download_center_get_article_by_tag(tag, action, type, isIFrame)
{
console.log('trv_download_center_get_article_by_tag');
console.log('tag:', tag);
console.log('action:', action);
console.log('type:', type);
console.log('isIFrame:', isIFrame);
blockScreen();
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "GET_ARTICLE_BY_TAG",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
tag: tag,
type: type,
action:action
},
function(data)
{
$('#trv_module_download_center_content').html(data);
$('input#downloadFilterInput').val("");
trv_download_center_get_set_tags(type);
setIframeTop();
var count = $('.downloadcentercontent_inner:visible').length;
$('#trv_module_download_center_content').prepend(''+count+' Downloads ');
var targetOffset = $('.downloadcentercontent').offset().top;
var scrollAmount = targetOffset - 180;
$('html, body').animate({
scrollTop: scrollAmount
}, 1000);
if (isIFrame)
{
setIFrameHeight();
}
});
}
function trv_download_center_filter(isIFrame)
{
blockScreen();
setTimeout('trv_download_center_filter_call('+isIFrame+')', 150);
}
function trv_download_center_filter_call(isIFrame)
{
var filterText = $('input#downloadFilterInput').val();
if (filterText == null)
{
filterText = "";
}
$('.trovarit_search_text').removeHighlight();
unblockScreen();
if (filterText.length == 0)
{
$(".trv_module_download_center_container").show();
}
else
{
$(".trv_module_download_center_container").each(
function (column)
{
var searchText = "";
$(".trovarit_search_text",this).each(function()
{
searchText += $(this).text()+" ";
});
if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0)
{
$(this).show();
}
else
{
$(this).hide();
}
});
$('.trovarit_search_text').highlight(filterText);
}
count = $(".trv_module_download_center_container:visible").length;
$('#trv_module_download_center_result_count').text(count);
if (count == 0)
{
$('.trv_module_download_center_result').addClass('trv_module_download_center_result_red');
}
else
{
$('.trv_module_download_center_result').removeClass('trv_module_download_center_result_red');
}
if (isIFrame)
{
setIFrameHeight();
}
}
function trv_download_center_filter_reset(isIFrame)
{
$('input#downloadFilterInput').val("");
trv_download_center_filter(isIFrame);
}
function trv_download_center_send_registration(isIFrame, typ, articleID)
{
if(typ=='article'){type=0;}
if(typ=='sponsored'){type=1;}
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
if (isFormValid('trv_module_download_center_registration_form',position, isIFrame,'trv_core_input_white_validator_error'))
{
blockScreen();
var zielgruppe = $('input[name=inputDCZielgruppe]:checked').val();
if ($('#inputDCZielgruppeSonstiges').val().length > 0)
{
zielgruppe = $('#inputDCZielgruppeSonstiges').val();
}
var zweck = "";
$('input[name=inputDCZweck]:checked').each(function(i)
{
zweck = zweck + $(this).val()+";";
});
if ($('#inputDCZweckSonstiges').val() != "")
{
zweck = zweck + $('#inputDCZweckSonstiges').val()+";";
}
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "REGISTER_DOWNLOADCENTER",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
articleID: articleID,
typ: typ,
inputDCTitle: $('#inputDCTitle').val(),
inputDCFirstName: $('#inputDCFirstName').val(),
inputDCName: $('#inputDCName').val(),
inputDCCompany: $('#inputDCCompany').val(),
inputDCStreet: $('#inputDCStreet').val(),
inputDCPLZ: $('#inputDCPLZ').val(),
inputDCCity: $('#inputDCCity').val(),
inputDCEMail: $('#inputDCEMail').val(),
inputDCTelefon: $('#inputDCTelefon').val(),
inputRegisterSalutation: $('#inputRegisterSalutation').val(),
inputDCZielgruppe: zielgruppe,
inputDCZweck: zweck,
pageLink: location.href,
googleID: localStorage.getItem("gclid")
},
function(data)
{
unblockScreen();
if (data == 0)
{
moduleDownloadCenterContentChanged(false);
$("#trv_module_dialog_download_center_registration").dialog("close");
infoDialog("INFORMATION","Vielen Dank für Ihre Registrierung. Sie erhalten in Kürze eine E-Mail mit dem Freischaltlink für unser Download-Center.",null,null,null, position);
trv_setPiwik(null,"Downloadcenter Registration - Complete");
//trv_download_center_get_file(articleID, isIFrame, typ);
}
else
{
infoDialog("FEHLER",data,null,600,null, position);
}
});
}
}
function trv_download_center_send_registration_sponsored(isIFrame)
{
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
if (isFormValid('trv_module_download_center_registration_form_sponsored',position, isIFrame,'trv_core_input_white_validator_error'))
{
blockScreen();
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "REGISTER_DOWNLOADCENTER_SPONSORED",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
inputDCEMail: $('#inputDCEMail').val(),
inputDCTyp: $('#inputDCTyp').val(),
inputArticleID: $('#inputArticleID').val(),
pageLink: location.href
},
function(data)
{
unblockScreen();
if (data == 0)
{
moduleDownloadCenterContentChanged(false);
$("#trv_module_dialog_download_center_registration_sponsored").dialog("close");
infoDialog("INFORMATION","Vielen Dank. Sie erhalten in Kürze eine E-Mail mit dem Link zur Vollendung der Registrierung für unser Download-Center.",null,null,null, position);
trv_setPiwik(null,"Downloadcenter Registration - Complete");
}
else
{
infoDialog("FEHLER",data,null,600,null, position);
}
});
}
}
function trv_dc_page_starter(preselectTagID, preselectDocumentData, type)
{
if (preselectTagID != "")
trv_download_center_get_article_by_tag(preselectTagID,'reset',type);
else
if (preselectDocumentData != "")
{
$('#downloadFilterInput').val(preselectDocumentData);
trv_download_center_filter();
}
}
function trv_download_center_open_registration_check_sponsored(articleID, isIFrame)
{
alert();
if ($("#trv_module_dialog_download_center_registration").length == 0)
{
blockScreen();
isIFrame = (isIFrame == null || !isIFrame) ? 0:1;
var position = getIFramePosition(isIFrame);
$("body").append("");
$("#trv_module_dialog_download_center_registration_sponsored").load("https://www.it-matchmaker.com/core/modules/download_center/components/dialog_check_sponsored.php?articleID="+articleID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452").dialog({
close: function(event, ui)
{
moduleDownloadCenterContentChanged(false);
$(this).dialog('destroy');
$("#trv_module_dialog_download_center_registration_sponsored").remove();
trv_setPiwik(null,"Downloadcenter Registration - Dialog close");
},
beforeClose: function(event, ui)
{
return closeDownloadCenterDialog(isIFrame);
},
closeOnEscape: false,
resizable: false,
position: position,
height: 'auto',
width: 600,
modal: true,
bgiframe: true,
title: "Downloadfreischaltung"
});
}
}
function trv_download_center_confirm_sponsored(articleID){
var check = document.getElementById('inputDatenschutz').checked;
if(check==false){
document.getElementById('datenschutz').style.border='2px solid red';
document.getElementById('datenschutz').style.borderRadius='11px';
}else{
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?articleID="+articleID+"&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "ADD_NEW_SPONSORED",
articleID: articleID,
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
pageLink: location.href
},
function(data)
{
console.log(data);
unblockScreen();
if (data == 0)
{
moduleDownloadCenterContentChanged(false);
$("#trv_module_dialog_download_center_registration").dialog("close");
infoDialog("INFORMATION","Vielen Dank. Sie erhalten in Kürze eine E-Mail mit dem Link zur Vollendung der Registrierung für unser Download-Center.",null,null,null);
trv_setPiwik(null,"Downloadcenter Registration - Complete");
unblockScreen();
}
else
{
infoDialog("FEHLER",data,null,600,null);
}
});
}
}
function trv_download_center_open_registration_sponsored_confirmed(articleID, isIFrame, typ, hash, advertiser){
var stat = document.getElementById("sponsoredcheck").checked;
if(stat != false){
var url = $(location).attr('href').split('?')[0];
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "ADD_SPONSORED_USER",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
hash: hash,
articleID: articleID,
url: url
},
function(data)
{
unblockScreen();
if (data != -1)
{
moduleDownloadCenterContentChanged(false);
$("#trv_module_dialog_download_center_registration").dialog("close");
infoDialog("INFORMATION","Einen Moment... Ihr Download wird aktiviert.",null,null,null);
trv_setPiwik(null,"Downloadcenter Registration - Complete");
unblockScreen();
location.reload();
}
else
{
infoDialog("FEHLER",data,null,600,null);
}
});
}else{
infoDialog("FEHLER","Sie müssen zuerst die Nutzerbedingungen akzeptieren.",null,600,null);
}
}
function trv_download_center_open_registration_sponsored_direct(articleID, isIFrame, typ, hash, mail, clientName){
confirmDialog("Datenschutzerklärung","trv_download_center_open_registration_sponsored_confirmed("+articleID+", "+isIFrame+", '"+typ+"', '"+hash+"', '"+clientName+"')", " Hiermit erkläre ich mich einverstanden, dass mich die Trovarit AG und {$sponsor} per E-Mail oder per Telefon zu ihren Produkten und Dienstleistungen informieren und beraten kann. Ich kann der Verwendung meiner Daten für Werbezwecke jederzeit widersprechen, etwa mit einer E-Mail an adressen@trovarit.com. Weitere Informationen zum Datenschutz bei der Trovarit AG und Ihren Betroffenenrechten finden Sie unter: https://www.trovarit.com/datenschutzerklaerung/");
$(".trovarit_dialog_info").css("text-align","left");
var text = $(".trovarit_dialog_info").html();
text=text.replace('{$sponsor}', clientName);
$(".trovarit_dialog_info").html(text)
}
$(document).ready(function() {
HTTP_GET_VARS=new Array();
strGET=document.location.search.substr(1,document.location.search.length);
if(strGET!='')
{
gArr=strGET.split('&');
for(i=0;i1){v=vArr[1];}
HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);
}
}
if(HTTP_GET_VARS["dc"])
{
console.log("DC...");
alert("DC!");
}
if(HTTP_GET_VARS["dcdsgvo"])
{
var url = $(location).attr('href').split('?')[0];
if(url.includes("it-matchmaker")){
url=url+"de/academy/download-center/";
}
if(url.includes("trovarit")){
url=url+"services";
}
var isIFrame =1;
var typ=HTTP_GET_VARS["t"];
var articleID=HTTP_GET_VARS["id"];
var hash=HTTP_GET_VARS["dcdsgvo"];
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "GET_HASH_VALID",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
hash: hash,
url: url
},
function(data)
{
if(data!=-1){
//trv_download_center_send_registration(isIFrame, articleID, typ)
//trv_download_center_send_registration
trv_download_center_download_finish_register(articleID, isIFrame, hash, typ, url);
$('#trv_module_download_center_article_'+articleID).css('border', '3px solid rgba(255,0,0,.3)', 'border-top' , 'none', 'margin-bottom','11px', 'border-bottom', '0px');
}
});
}
if(HTTP_GET_VARS["hashonce"])
{
var url = $(location).attr('href').split('?')[0];
var isIFrame =0;
var articleID=HTTP_GET_VARS["id"];
var hash=HTTP_GET_VARS["hashonce"];
$.post( "https://www.it-matchmaker.com/core/modules/download_center/ajax/ajax.php?hash="+hash+"&id="+articleID+"&app_language=de&PHPSESSID=7ea450af6fc21cdf1ff2d6c9c892d452",
{
ajax_type: "GET_HASH_ONE_TIME_VALID",
full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZP2g2OVhyJDNVWzQhYiw0NTtpS243eiFCeE15Q11eW3I4PyNmak9YPXVqcA,,",
articleID: articleID,
hash: hash
},
function(data)
{
if(data==1){
trv_download_center_get_file(articleID, isIFrame, typ, 1);
//trv_download_center_send_registration(isIFrame, articleID, typ)
//trv_download_center_send_registration
//trv_download_center_download_finish_register(articleID, isIFrame, hash, typ, url);
}
});
}
if(HTTP_GET_VARS["fid"])
{
var url = $(location).attr('href').split('?')[0];
var isIFrame =0;
var articleID=HTTP_GET_VARS["fid"];
if(articleID > 0)
{
trv_download_center_get_file(articleID, isIFrame, typ);
}
}
if(HTTP_GET_VARS["dwnld"])
{
var isIFrame =0;
var articleID=HTTP_GET_VARS["dwnld"];
if(articleID > 0)
{
$('#trv_module_download_center_article_'+articleID).css('border', '3px solid rgba(255,0,0,.3)', 'border-top' , 'none', 'border-bottom', '0px');
$('#trv_module_download_center_article_'+articleID).css('border-top' , 'none');
$("body").trv_scrollTo("#trv_module_download_center_article_"+articleID);
trv_download_center_get_file(articleID, isIFrame, typ);
}
}
});
function trv_open_download_center_dialog()
{
// $(".trv_msv2_helper_model_container").load("https://www.it-matchmaker.com/core/modules/download_center/templates/dialog/register_article.tpl", function() {
//});
}
$(document).ready(function() {
var count = $('.downloadcentercontent').length;
$('#trv_module_download_center_result_count').html(count);
});