";
let ad = "";
if (livetickerEvent.isAdOnline) {
if (livetickerEvent.smbIsEventForOwnTeam) {
ad = liveContentPresenterTemplate("103663", "substitute_h96", livetickerEvent, isMobile);
} else {
ad = liveContentPresenterTemplate("103663", "substitute_opponent", livetickerEvent, isMobile);
}
}
return addWhiteContainer(firstRow + ad);
}
// TODO HIGHLIGHTS
function highlightsTemplate(livetickerEvent, isMobile) {
let firstRow = "
Highlights
";
let eventRows = "
";
for(let i = 0; i < livetickerEvent.highLightsArray.length; i++) {
eventRows += highlightsHTMLTemplate(livetickerEvent.highLightsArray[i], isMobile);
}
eventRows+= "
";
return addWhiteContainer(firstRow + eventRows);
}
function highlightsHTMLTemplate(livetickerEvent, isMobile) {
let highlightsClass = "justify-content-start";
let highlightsCol = calculateTimeString(livetickerEvent) + calculateHighlightsString(livetickerEvent) + returnSimpleIconHTML(livetickerEvent);
// TODO find out if home or not
if((livetickerEvent.smbIsEventForOwnTeam === false && liveTickerCodeMatch.smbIsHomeMatch === true) ||
livetickerEvent.smbIsEventForOwnTeam === true && liveTickerCodeMatch.smbIsHomeMatch === false) {
// Display Right
highlightsClass = "justify-content-end";
}
const currentUrl = window.location.href;
if (isMobile) {
return "
";
let commonMedia = commonMediaTemplate(livetickerEvent);
return addWhiteContainer(firstRow + commonMedia);
}
function waitForKickoffTemplate(livetickerEvent) {
let firstRow = "
" +
eventLeftColumnTemplate(livetickerEvent) +
"
" +
eventRightColumnTemplate(livetickerEvent) +
"
";
let commonMedia = commonMediaTemplate(livetickerEvent);
let liveContent = liveContentPresenterTemplate(103663, "kickoff", livetickerEvent);
return addWhiteContainer(firstRow + commonMedia + liveContent);
}
// TODO ADD
function adTemplate(livetickerEvent) {
return liveContentPresenterTemplate(103663, "advertisement", livetickerEvent);
}
// TODO SPONSOR
function sponsorTemplate(livetickerEvent) {
return "";
}
function surveyTemplate(livetickerEvent, isMobile) {
surveyInStorage = localStorage.getItem("a20-survey-" + livetickerEvent.smbSurvey.id);
if (surveyInStorage == null && livetickerEvent.smbSurvey.smbIsActive === true) {
return openSurveyTemplate(livetickerEvent, isMobile);
} else {
return resultSurveyTemplate(livetickerEvent, isMobile);
}
}
function openSurveyTemplate(livetickerEvent, isMobile) {
let idWrapper = "";
let surveyHeaderImage = "
" +
eventLeftColumnTemplate(livetickerEvent) +
"
";
let surveyAnswers = "";
let totalAnswers = 0;
for (let i = 0; i < livetickerEvent.smbSurvey.smbAnswers.length; i++) {
totalAnswers += livetickerEvent.smbSurvey.smbAnswers[i].smbResult;
}
for (let i = 0; i < livetickerEvent.smbSurvey.smbAnswers.length; i++) {
surveyAnswers += "";
}
if (isMobile) {
surveyAnswers += "";
} else {
surveyAnswers += "";
}
let surveyContent = "
"
+ livetickerEvent.smbSurvey.smbQuestion +
"
"
+ surveyAnswers +
"
"
;
/* Preparation if the survey needs dependency on these newer smb properties */
// let currentDate = new Date().getTime();
// let visibilityEndedAt = new Date(livetickerEvent.smbSurvey.smbVisibilityEndedAt).getTime();
// let votingEndedAt = new Date(livetickerEvent.smbSurvey.smbVotingEndedAt).getTime();
// let votingStartedAt = new Date(livetickerEvent.smbSurvey.smbVotingStartedAt).getTime();
let surveyHtml = "";
if (isMobile) {
idWrapper = "
" + surveyHeaderImage + "
" + surveyContent + "
";
surveyHtml = "
" + idWrapper + "
";
} else {
idWrapper = "
" + surveyHeaderImage + "
" + surveyContent + "
";
surveyHtml = "
" + idWrapper + "
";
}
let commonMedia = commonMediaTemplate(livetickerEvent);
let liveContent = "";
if (livetickerEvent.isAdOnline) {
liveContent = liveContentPresenterTemplate(103663, targetId, livetickerEvent, isMobile);
}
return surveyHtml;
}
function resultSurveyTemplate(livetickerEvent, isMobile) {
let idWrapper = "";
let surveyHeaderImage = "
" +
eventLeftColumnTemplate(livetickerEvent) +
"
"
;
selectedAnswerId = localStorage.getItem("a20-survey-" + livetickerEvent.smbSurvey.id);
let surveyAnswers = "";
let totalAnswers = 0;
for (let i = 0; i < livetickerEvent.smbSurvey.smbAnswers.length; i++) {
totalAnswers += livetickerEvent.smbSurvey.smbAnswers[i].smbResult;
}
for (let i = 0; i < livetickerEvent.smbSurvey.smbAnswers.length; i++) {
surveyAnswers += "";
}
if (isMobile && selectedAnswerId != null) {
surveyAnswers += "";
} else if (selectedAnswerId != null) {
surveyAnswers += "";
}
let surveyContent = "
"
+ livetickerEvent.smbSurvey.smbQuestion +
"
"
+ surveyAnswers +
"
"
;
/* Preparation if the survey needs dependency on these newer smb properties */
// let currentDate = new Date().getTime();
// let visibilityEndedAt = new Date(livetickerEvent.smbSurvey.smbVisibilityEndedAt).getTime();
// let votingEndedAt = new Date(livetickerEvent.smbSurvey.smbVotingEndedAt).getTime();
// let votingStartedAt = new Date(livetickerEvent.smbSurvey.smbVotingStartedAt).getTime();
if (livetickerEvent.smbSurvey.smbIsActive === false || selectedAnswerId != null) {
if (isMobile) {
idWrapper = "
" + surveyHeaderImage + "
" + surveyContent + "
";
} else {
idWrapper = "
" + surveyHeaderImage + "
" + surveyContent + "
";
}
}
let surveyHtml = "
" + idWrapper + "
";
let commonMedia = commonMediaTemplate(livetickerEvent);
let liveContent = "";
if (livetickerEvent.isAdOnline) {
liveContent = liveContentPresenterTemplate(103663, targetId, livetickerEvent, isMobile);
}
return surveyHtml;
}
function sendCustomSurvey(livetickerEventSurveyId) {
const surveyRadioElements = jQuery(".a20-survey-radio");
let checkedValue;
let surveyObject;
for (let i = 0; i < surveyRadioElements.length; i++) {
if (surveyRadioElements[i].checked === true) {
checkedValue = surveyRadioElements[i].value;
}
}
if (checkedValue != null) {
const sendObject = {
id: checkedValue
};
const localStorageVarName = "a20-survey-" + livetickerEventSurveyId;
callPHPPostSurvey(sendObject).then((response) => {
return callPHPGetHomeSurvey(livetickerEventSurveyId);
}).then((response) => {
setLocalStorage(localStorageVarName, checkedValue);
if (response != null) {
surveyObject = response;
changeSurveyView(response);
} else {
document.getElementById("a20-home-voting-element").style.display = "none";
}
});
}
}
function changeSurveyView(survey) {
let buttonElements = document.querySelectorAll("#" + survey.id + " button");
let buttonElementsMobile = document.querySelectorAll("#mobile-" + survey.id + " button");
let inputElements = document.querySelectorAll("#" + survey.id + " input");
let inputElementsMobile = document.querySelectorAll("#mobile-" + survey.id + " input");
let surveyResultElements = document.querySelectorAll(".open-survey-results");
let totalAnswers = 0;
for (let i = 0; i < survey.smbAnswers.length; i++) {
totalAnswers += survey.smbAnswers[i].smbResult;
}
if (totalAnswers > 0) {
for(let i = 0; i < survey.smbAnswers.length; i++) {
document.getElementById("result-" + survey.smbAnswers[i].id).firstChild.data = (survey.smbAnswers[i].smbResult / totalAnswers * 100).toLocaleString("de-DE", {minimumFractionDigits: 2, maximumFractionDigits: 2}) + "%";
document.getElementById("mobile-result-" + survey.smbAnswers[i].id).firstChild.data = (survey.smbAnswers[i].smbResult / totalAnswers * 100).toLocaleString("de-DE", {minimumFractionDigits: 2, maximumFractionDigits: 2}) + "%";
}
}
for(let i = 0; i < buttonElements.length; i++) {
buttonElements[i].classList.remove("btn-home-green");
buttonElements[i].classList.add("btn-home-grey");
buttonElements[i].firstChild.data = "Danke für deine Stimme!";
}
for(let i = 0; i < buttonElementsMobile.length; i++) {
buttonElementsMobile[i].classList.remove("btn-home-green");
buttonElementsMobile[i].classList.add("btn-home-grey");
buttonElementsMobile[i].firstChild.data = "Danke für deine Stimme!";
}
for(let i = 0; i < inputElements.length; i++) {
inputElements[i].setAttribute("disabled", true);
}
for(let i = 0; i < inputElementsMobile.length; i++) {
inputElementsMobile[i].setAttribute("disabled", true);
}
for(let i = 0; i < surveyResultElements.length; i++) {
surveyResultElements[i].classList.remove("d-none");
}
}
/**
* Calls the API for get home survey
*
*/
function callPHPGetHomeSurvey(livetickerEventSurveyId) {
return a20VotingXHRSetup(livetickerEventSurveyId, "https://www.hannover96.de/fileadmin/helpers/CoreApiGetLivetickerSurveyHelper.php");
}
function callPHPPostSurvey(sendObject) {
return a20VotingXHRSetup(sendObject.id, "https://www.hannover96.de/fileadmin/helpers/CoreApiSendSurveyHelper.php");
}
/**
* Setup for API calls
*
*/
function a20VotingXHRSetup(id, url) {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
xhr.setRequestHeader('Content-Type', 'application/json');
if (id === null) {
xhr.send("");
} else {
xhr.send(id);
}
xhr.onreadystatechange = (event) => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
if (xhr.responseText == null || xhr.responseText === "") {
resolve(null);
} else {
resolve(JSON.parse(xhr.responseText));
}
} else {
console.error(xhr.status);
}
}
}
});
}
function surveyChangeEventHandler(isMobile) {
if (isMobile) {
document.querySelector("#survey-voting-button-mobile").disabled = false;
} else {
document.querySelector("#survey-voting-button").disabled = false;
}
}
// TODO NEWS
function newsTemplate(livetickerEvent) {
return "";
}
function twitterTemplate(livetickerEvent) {
let firstRow = "
" +
eventLeftColumnTemplate(livetickerEvent) +
"
" +
eventRightColumnTemplate(livetickerEvent) +
"
";
let twitterHTML = "
" + livetickerEvent.smbLink + "
";
return addWhiteContainer(firstRow + twitterHTML);
}
/**
* Used for highlights
*
* */
function returnSimpleIconHTML(livetickerObject) {
let livetickerIcon = "";
switch (livetickerObject.smbType) {
case "goal":
livetickerIcon = "/fileadmin/eventIcons/stadionservices_icon";
break;
case "dismissal":
livetickerIcon = "/fileadmin/eventIcons/forbidden_icon";
break;
case "final":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "kickoff":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "halftime":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "let":
livetickerIcon = "/fileadmin/eventIcons/let_icon";
break;
case "substitute":
livetickerIcon = "/fileadmin/eventIcons/substitution_icon";
break;
case "red-card":
livetickerIcon = "/fileadmin/eventIcons/red_card_icon";
break;
case "yellow-card":
livetickerIcon = "/fileadmin/eventIcons/yellow-card";
break;
case "yellow-red-card":
livetickerIcon = "/fileadmin/eventIcons/yellow_red_card_icon";
break;
case "viewership":
livetickerIcon = "/fileadmin/eventIcons/chart_icon";
break;
case "statistic":
livetickerIcon = "/fileadmin/eventIcons/chart_icon";
break;
default:
break;
}
let liverTickerIconHTML = "";
if (livetickerIcon !== "") {
liverTickerIconHTML = "";
}
return liverTickerIconHTML;
}
function returnIconHTML(livetickerObject) {
let livetickerIcon = "";
switch (livetickerObject.smbType) {
case "goal":
livetickerIcon = livetickerObject.smbIsEventForOwnTeam === false ? "/fileadmin/eventIcons/stadionservices_icon" : "/fileadmin/eventIcons/stadionservices_icon_selected";
break;
case "dismissal":
livetickerIcon = "/fileadmin/eventIcons/forbidden_icon";
break;
case "final":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "kickoff":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "halftime":
livetickerIcon = "/fileadmin/eventIcons/whistle_icon";
break;
case "let":
livetickerIcon = "/fileadmin/eventIcons/let_icon";
break;
case "substitute":
livetickerIcon = "/fileadmin/eventIcons/substitution_icon";
break;
case "red-card":
livetickerIcon = "/fileadmin/eventIcons/red_card_icon";
break;
case "yellow-card":
livetickerIcon = "/fileadmin/eventIcons/yellow-card";
break;
case "yellow-red-card":
livetickerIcon = "/fileadmin/eventIcons/yellow_red_card_icon";
break;
case "viewership":
livetickerIcon = "/fileadmin/eventIcons/chart_icon";
break;
case "statistic":
livetickerIcon = "/fileadmin/eventIcons/chart_icon";
break;
default:
break;
}
let liverTickerIconHTML = "";
if (livetickerIcon !== "") {
liverTickerIconHTML = "";
}
return liverTickerIconHTML;
}
Hannover 96 Resmi Internet Sitesine HOŞGELDİNİZ!
Buradaki bütün Türk arkadaşlarımızı buradan Selamlıyoruz.
HANNOVER 96 hakkında:
Kuruluşumuz 12 Nisan 1896 senesinde gerçekleşmiştir. Büyük ve köklü tarihi olan 96 Kulübü, Şehir ve Kulüp birliği ile el ele muhteşem Zaferlere Imza atmştır.
Bu neden ile Kulüp sloganımız: HİÇ BİR ZAMAN YALNIZ DEĞİLİZ'dir!
Geçmişteki İnanılmaz Tarihi anları hatırlarsak,
aklımıza 1938 ,1954'deki Şampiyonluklar
ve 1992'deki Kupa Şampiyonluğu gelir!
Kulübümüz son Dönemde Bundesliga'nın Vazgeçilmez Takımların arasına girerek, büyük prestij sağlamış ,2011/12, 2012/13 sezonlarda taraftarlarıyla beraber muhteşem Avrupa Kupası Macerası Yaşamıştır!
HANNOVER 96 Bu Sezon ile, peşpeşe 14. Sezonunu Bundesliga'da oynamaktadır!
Takımımız hakkında daha fazla bilgi alabilmek için, İngilizce Metinli Resmi Web Sitemizi, ya da çeşitli sosyal Medya Kanallarımızı Ziyaret edebilirsiniz!
We extend a warm welcome to all English speaking fans visiting the official website of Hannover 96.
About Hannover 96:
Hannover 96 was established on 12th April 1896. In its long history, rich in tradition, the greatest successes have always come when the special bond between club and city, and between the club and its fans, was at its strongest. Because of that we have the club motto “NIEMALS ALLEIN” [‘Never Alone’].
The most glorious moments in the club’s history include winning the German championship in 1938 and 1954, as well as the Cup success of 1992. In their early days, 96 established themselves firmly in the Bundesliga. The stand out memories for the fans in recent years include the two seasons in the Europa league in the 2011/12 and 2012/13 seasons.
In 2015/16 Hannover will compete in the Bundesliga for the 14th consecutive season.
Visit our English website or multiple social media channels to keep up-to-date with everything at Hannover 96!
Damos la cálida bienvenida a todos los fans de habla inglesa / hispana / turca / japonesa, a la página web oficial del Hannover 96.
Acerca del Hannover 96
El Hannover 96 se fundó el 12 de abril de 1896. En su larga historia llena de tradición, siempre hubieron los mayores éxitos cuando la especial unión entre el club y la ciudad, y entre el equipo y los aficionados, era más fuerte. De ahí que el lema del club sea: ¡NUNCA SOLO!
Los momentos más gloriosos de su historia fueron el Campeonato de Alemania de los años 1938 y 1954, y la copa conseguida en 1992. En la historia más reciente, el 96 se ha consagrado bien en la Bundesliga. Los recuerdos que especialmente atraen a los fans son las dos trayectorias en la Europa League de la 2011/12 (cuartos de final) y 2012/13 (dieciseisavos de final).
La campaña 2015/16 será para el Hannover 96 su decimocuarta temporada seguida en la Bundesliga.
Para estar siempre informado sobre el Hannover 96, visite nuestro portal web en inglés o los diferentes canales de medios sociales de los que disponemos.
Nous souhaitons la bienvenue sur le site officiel de Hannover 96 à tous nos supporters.
Petite histoire de Hannover 96:
Hannover 96 a été fondé le 12 avril 1896. Sa riche histoire a été marquée de succès inoubliables rendus possibles par l’union sacrée entre le club et la ville ainsi qu’entre l’équipe et les supporters. Voilà pourquoi la devise du club est « JAMAIS SEULS ! » (« NIEMALS ALLEIN ! » en allemand).
Les titres de champion d’Allemagne en 1938 et 1954 et la victoire en Coupe d’Allemagne en 1992 constituent des sommets de l’histoire du club. Depuis plusieurs années, 96 fait partie intégrante de la Bundesliga. Les supporters gardent aussi en mémoire les campagnes en Europa League en 2011/12 et 2012/13.
Pour Hannover 96, 2015/16 constitue la quatorzième saison d’affilée en Bundesliga.
Pour ne rien rater de l’actualité de Hannover 96 n’hésitez pas à consulter notre site traduit en anglais ou les différents réseaux sociaux !