{
    "css" : [
        "https://hosted.dcd.shared.geniussports.com/css/footable.bootstrap.min.css",
        "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",
        "https://hosted.dcd.shared.geniussports.com/css/hs-embed-style.css?v=v=4.0"
    ],
    "js" : [
        "https://hosted.dcd.shared.geniussports.com/js/footable.min.js",
        "https://hosted.dcd.shared.geniussports.com/js/hosted.js?v=4.0",
        "https://hosted.dcd.shared.geniussports.com/js/toggleclasses.js"
    ],
    "html": "<style>\n            .page-nav, .table-wrap th, .template-wrap th,.leader-first .ld-info{background:#4A4A4A;}\n            .match-details-wrap, .table-wrap th, .template-wrap th,.leader-first .ld-info, .match-venue a{color:#FFFFFF}\n            .match-header .name a,\n            .match-wrap .sched-teams .team-name span,\n            .playerblock a,\n            .teams-list-page .team-link a,\n            .template-wrap a,\n            .table-wrap a,\n            .template-wrap a.teamnames,\n            .template-wrap table a, \n            .alphabet li a {\n                color:#0B11DE}\n            \/* Start Custom HS CSS *\/\n            \n            \/* End Custom HS CSS *\/\n        <\/style>\n    <div class = \"_user_581 _comp_2393 ltr hs-embed  summary\" style=\"visibility: hidden;\">\n        <div class=\"hs-page hs-container\" id=\"hs-container\">\n                     <a href=\"#\" onClick=\"printElem('hs-container','https:\/\/hosted.dcd.shared.geniussports.com'); return false\" class=\"print-link\"><img src=\"https:\/\/hosted.dcd.shared.geniussports.com\/images\/print-icon.png\" alt=\"Print\" id=\"print-button\" \/><\/a>\n                           \n            <div class=\"hs-container noresize main-container\">\n                <div class=\"hs-row\">\n                    <div class=\"hs-col-full\">\n                        \t\t\t\t\t\t\t\t\t    \t\t\t\t<div class=\"extfix_403764 \">\n\t\t\t\t\t\t\t\n                                    \n<div class=\"match-page page football-match\">\n    <h3>Match Details<\/h3>\n\n    <div id=\"BLOCK_MATCH_HEADER\" class=\"football\">\n    <div class=\"match-details-bar\">\n                <div class=\"match-detail\">\n            <h6>Competition: <\/h6>\n            <span>LIGA SUPER MALAYSIA 2026\/2027<\/span>\n        <\/div>\n                            <div class=\"match-detail\">\n                <h6>Date \/ Time: <\/h6>\n                <span>Aug 22, 2026, 5:00 PM<\/span>\n            <\/div>\n                            <div class=\"match-detail\">\n                <h6>Venue: <\/h6>\n                <span>STADIUM TUANKU ABDUL RAHMAN, PAROI<\/span>\n            <\/div>\n            <\/div>\n    <div class=\"match-header\" id=\"extfix_403764\">\n        <div class=\"team team-0\">\n            <div class=\"team-color\"><\/div>\n            <div class=\"team-logo\">\n                <img src = \"https:\/\/img.wh.sportingpulseinternational.com\/0fa110f3396e16423e0374d4971384dcT1.png\">\n            <\/div>\n            <div class=\"team-name name\">\n                <a href=\"https:\/\/hosted.dcd.shared.geniussports.com\/MFL\/en\/competition\/2393\/team\/5342?\" title=\"NEGERI SEMBILAN FC\">NEGERI SEMBILAN FC<\/a>\n            <\/div>\n            <div class=\"team-score\">\n                <span id=\"aj_1_score\">3<\/span>\n                <span id=\"aj_1_penalties\" class=\"inPenalties\" style=\"display: none\">0<\/span>\n            <\/div>\n        <\/div>\n        <div class=\"clock-summary\">\n            <div class=\"period\"><\/div>\n            <div class=\"clock\">\n                                    <span id=\"clock-time\">vs<\/span>\n                            <\/div>\n        <\/div>\n        <div class=\"team team-1\">\n            <div class=\"team-color\">\n            <\/div>\n            <div class=\"team-logo\">\n                <img src = \"https:\/\/images.statsengine.playbyplay.api.geniussports.com\/d30ee7d204ad9059c6984d5169ebc9e3T1.png\">\n            <\/div>\n            <div class=\"team-name name\">\n                <a href=\"https:\/\/hosted.dcd.shared.geniussports.com\/MFL\/en\/competition\/2393\/team\/5332?\" title=\"KUALA LUMPUR CITY FC\">KUALA LUMPUR CITY FC<\/a>\n            <\/div>\n            <div class=\"team-score\">\n                <span id=\"aj_2_penalties\" class=\"inPenalties\" style=\"display: none\">0<\/span>\n                <span>0<\/span>\n            <\/div>\n            <div id=\"aj_2_foulmarker\" class=\"team-fouls fouls-0\">\n            <\/div>\n        <\/div>\n        <div class=\"extraDetail\">\n            <div class=\"team-scorers team-0\">\n                <div id=\"aj_1_ball_penalties\"><\/div>\n                <span id=\"aj_1_scorers\"> <\/span>\n            <\/div>\n            <div class=\"time-added\">\n                <span id=\"aj_timeAdded\"> <\/span>\n            <\/div>\n            <div class=\"team-scorers team-1\">\n                <div id=\"aj_2_ball_penalties\"><\/div>\n                <span id=\"aj_2_scorers\"> <\/span>\n            <\/div>\n        <\/div>\n        \n\n<div class=\"relative football-timeline\">\n\t<div class=\"timeline-wrapper\">\n\t\t<span class=\"timeline-nav arrow-left\"><\/span>\n\t\t<span class=\"timeline-nav arrow-right\"><\/span>\n\t\t<div class=\"teams-logos\">\n\t\t\t<span class = \"id_aj_1_logoT team-logo-wrapper\"><img src = \"https:\/\/img.wh.sportingpulseinternational.com\/0fa110f3396e16423e0374d4971384dcT1.png\"><\/span>\n\t\t\t<span class = \"id_aj_2_logoT team-logo-wrapper\"><img src = \"https:\/\/images.statsengine.playbyplay.api.geniussports.com\/d30ee7d204ad9059c6984d5169ebc9e3T1.png\"><\/span>\n\t\t<\/div>\n\t\t<div class=\"overflow-auto\">\n\t\t\t<div class=\"timeline\">\n\t\t\t\t<div class=\"timeline-bar\">\n\t\t\t\t\t<div class=\"team1\">\n\t\t\t\t\t\t<span class = \"id_aj_1_logoT\"><img src = \"https:\/\/img.wh.sportingpulseinternational.com\/0fa110f3396e16423e0374d4971384dcT1.png\"><\/span>\n\t\t\t\t\t\t<span class = \"id_aj_1_name\">NEGERI SEMBILAN FC<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"team2\">\n\t\t\t\t\t\t<span class = \"id_aj_2_logoT\"><img src = \"https:\/\/images.statsengine.playbyplay.api.geniussports.com\/d30ee7d204ad9059c6984d5169ebc9e3T1.png\"><\/span>\n\t\t\t\t\t\t<span class = \"id_aj_2_name\">KUALA LUMPUR CITY FC<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"timeline-frame\">\n\t\t\t\t\t\t<span id=\"timeline-main\"><\/span>\n\t\t\t\t\t\t<span id=\"timeline-active\"><\/span>\n\t\t\t\t\t\t<span id=\"timeline-labels\"><\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<span id=\"timeline-clock-main\"><\/span>\n\t\t\t\t<span id=\"timeline-clock\"><\/span>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n<script type=\"text\/javascript\" >\n\tjQuery(document).ready(function(){\n\tvar lexicon = {\n\t\t\"game.start\" : \"Start of match\",\n\t\t\"kickoffteam\" : \"Kick off team\",\n\t\t\"kickoff\" : \"Kick off\",\n\t\t\"freekick.awarded\" : \"Free kick awarded\",\n\t\t\"game.end\" : \"Full Time\",\n\t\t\"period.start\" : \"Kick-Off\",\n\t\t\"period.end\" : \"End of half\",\n\t\t\"substitution.in\" : \"Substitution in\",\n\t\t\"substitution.out\" : \"Substitution out\",\n\t\t\"clock.start\" : \"Clock start\",\n\t\t\"clock.stop\" : \"Clock stop\",\n\t\t\"clock.adjustment\" : \"Clock adjustment\",\n\t\t\"goal\" : \"Goal\",\n\t\t\"goal.own\" : \"Own goal\",\n\t\t\"goal.disallowed\" : \"Disallowed goal\",\n\t\t\"shot\" : \"Shot\",\n\t\t\"penaltykick.awarded\" : \"Penalty Kick - awarded\",\n\t\t\"penaltykick.taken\" : \"Penalty kick\",\n\t\t\"penaltykick.retaken\" : \"Penalty kick retaken\",\n\t\t\"save\" : \"Save\",\n\t\t\"save.caught\" : \"Save - caught\",\n\t\t\"save.deflected\" : \"Save - deflected\",\n\t\t\"save.smother\" : \"Save - smother\",\n\t\t\"save.punch\" : \"Save - punch\",\n\t\t\"toss.won\" : \"Won toss\",\n\t\t\"toss.lost\" : \"Lost toss\",\n\t\t\"droppedball\" : \"Dropped ball\",\n\t\t\"retired.return\" : \"Returned from retirement\",\n\t\t\"retired.out\" : \"Retired\",\n\t\t\"keeperchange.toplayer\" : \"no longer the goal keeper\",\n\t\t\"keeperchange.fromplayer\" : \"became goal keeper\",\n\t\t\"throwin\" : \"Throw-In\",\n\t\t\"throwin.taken\" : \"Throw-In\",\n\t\t\"throwin.conceded\" : \"Throw-In conceded\",\n\t\t\"freekick.awardedindirect\" : \"Free Kick awarded\",\n\t\t\"freekick.awardeddirect\" : \"Free Kick awarded\",\n\t\t\"freekick\" : \"Free Kick taken\",\n\t\t\"freekick.taken\" : \"Free Kick taken\",\n\t\t\"cardyellow\" : \"Yellow card\",\n\t\t\"cardyellow.delayingrestart\" : \"Yellow card - delaying restart\",\n\t\t\"cardyellow.dissent\" : \"Yellow card - dissent\",\n\t\t\"cardyellow.fieldofplay\" : \"Yellow card - field of play\",\n\t\t\"cardyellow.encroaching\" : \"Yellow card - encroaching\",\n\t\t\"cardyellow.persistentinfringement\" : \"Yellow card - persistent infringement\",\n\t\t\"cardyellow.unsporting\" : \"Yellow card - unsporting\",\n\t\t\"cardyellow.simulation\" : \"Yellow card - simulation\",\n\t\t\"cardyellow.changeposition\" : \"Yellow card - change position\",\n\t\t\"cardyellow.reckless\" : \"Yellow card - reckless\",\n\t\t\"cardyellow.intefereattack\" : \"Yellow card - interference on attack\",\n\t\t\"cardyellow.handball\" : \"Yellow card - handball\",\n\t\t\"cardyellow.markingpitch\" : \"Yellow card - marking pitch\",\n\t\t\"cardyellow.playonleaving\" : \"Yellow card - play on leaving\",\n\t\t\"cardyellow.timewasting\" : \"Yellow card - time wasting\",\n\t\t\"cardyellow.lackofrespect\" : \"Yellow card - lack of respect\",\n\t\t\"cardyellow.backpass\" : \"Yellow card - back pass\",\n\t\t\"cardyellow.verbaldistraction\" : \"Yellow card - verbal distraction\",\n\t\t\"cardyellow.excessivecelebration\" : \"Yellow card - excessive\",\n\t\t\"cardred\" : \"Red card\",\n\t\t\"cardred.secondyellow\" : \"Red card - second yellow\",\n\t\t\"cardred.deliberatehandball\" : \"Red card - deliberate handball\",\n\t\t\"cardred.professionalfoul\" : \"Red card - professional foul\",\n\t\t\"cardred.seriousfoulplay\" : \"Red card - serious foul play\",\n\t\t\"cardred.spitting\" : \"Red card - spitting\",\n\t\t\"cardred.violentconduct\" : \"Red card - violent conduct\",\n\t\t\"cardred.abusiveconduct\" : \"Red card - abusive conduct\",\n\t\t\"cardred.deniedgoalscoringchance\" : \"Red card - denied goal scoring chance\",\n\t\t\"cardred.dissent\" : \"Red card - dissent\",\n\t\t\"out\" : \"Out\",\n\t\t\"corner.taken\" : \"Corner taken\",\n\t\t\"corner.conceded\" : \"Corner conceded\",\n\t\t\"goalkick\" : \"Goal Kick taken\",\n\t\t\"goalkick.taken\" : \"Goal Kick taken\",\n\t\t\"goalkick.conceded\" : \"Goal Kick conceded\",\n\t\t\"delay.start\" : \"Delay\",\n\t\t\"delay.end\" : \"Delay ended\",\n\t\t\"assist\" : \"Assist\",\n\t\t\"assist.cross\" : \"Assist\",\n\t\t\"assist.header\" : \"Assist\",\n\t\t\"assist.throwin\" : \"Assist\",\n\t\t\"assist.goalkick\" : \"Assist\",\n\t\t\"clearance\" : \"Clearance\",\n\t\t\"clearance.punch\" : \"Punched clear\",\n\t\t\"interception\" : \"Interception\",\n\t\t\"foul\" : \"Foul\",\n\t\t\"foul.careless\" : \"Foul - careless\",\n\t\t\"foul.reckless\" : \"Foul - reckless\",\n\t\t\"foul.excessiveforce\" : \"Foul - excessive force\",\n\t\t\"foul.handball\" : \"Foul - handball\",\n\t\t\"foul.holding\" : \"Foul - holding\",\n\t\t\"foul.impeding\" : \"Foul - impeding\",\n\t\t\"foul.spitting\" : \"Foul - spitting\",\n\t\t\"foul.dangerousplay\" : \"Foul - dangerous play\",\n\t\t\"foul.heldtoolong\" : \"Foul - held too long\",\n\t\t\"foul.other\" : \"Foul - other\",\n\t\t\"foulwon\" : \"Free Kick won\",\n\t\t\"shootoutkick\" : \"Shootout kick\",\n\t\t\"shootoutsave\" : \"Shootout - save\",\n\t\t\"shootoutsave.caught\" : \"Shootout - save - caught\",\n\t\t\"shootoutsave.deflected\" : \"Shootout - save - deflected\",\n\t\t\"shootoutsave.smother\" : \"Shootout - save - smother\",\n\t\t\"shootoutsave.punch\" : \"Shootout - save - punch\",\n\t\t\"shot.ontarget\" : \"FOOTBALL_ACTION_SHOT_ONTARGET\",\n\t\t\"shot.offtarget\" : \"FOOTBALL_ACTION_SHOT_OFFTARGET\",\n\t\t\"tackle\" : \"Tackle\",\n\t\t\"tackle.won\" : \"Tackle won\",\n\t\t\"tackle.lost\" : \"Tackle lost\",\n\t\t\"block\" : \"Block\",\n\t\t\"pass\" : \"Pass\",\n\t\t\"pass.cross\" : \"Cross\",\n\t\t\"pass.received\" : \"Pass received\",\n\t\t\"duel.won\" : \"Won duel\",\n\t\t\"duel.lost\" : \"Lost duel\",\n\t\t\"claim\" : \"Claim\",\n\t\t\"claim.caught\" : \"Caught\",\n\t\t\"claim.smother\" : \"Smother\",\n\t\t\"recovery\" : \"Recovery\",\n\t\t\"offside\" : \"Offside\",\n\t\t\"injurytime\" : \"Injury time allowed\",\n\t\t\"injury.recovered\" : \"Injury recovered\",\n\t\t\"injury.sustained\" : \"Injury sustained\",\n\t\t\"STRIKER\": \"S\",\n\t\t\"LEFTWINGER\": \"LW\",\n\t\t\"RIGHTWINGER\": \"RW\",\n\t\t\"LEFTFORWARD\": \"LF\",\n\t\t\"RIGHTFORWARD\": \"RF\",\n\t\t\"CENTERATTACKINGMIDFIELD\": \"CAM\",\n\t\t\"CENTERDEFENSIVEMIDFIELD\": \"CDM\",\n\t\t\"LEFTMIDFIELD\": \"LM\",\n\t\t\"RIGHTMIDFIELD\": \"RM\",\n\t\t\"CENTERMIDFIELD\": \"CM\",\n\t\t\"LEFTBACK\": \"LB\",\n\t\t\"RIGHTBACK\": \"RB\",\n\t\t\"RIGHTWINGBACK\": \"RWB\",\n\t\t\"LEFTWINGBACK\": \"LWB\",\n\t\t\"CENTERBACK\": \"CB\",\n\t\t\"GOALKEEPER\": \"GK\",\n\t\t\"FORWARD\": \"FOR\",\n\t\t\"DEFENDER\": \"DEF\",\n\t\t\"MIDFIELDER\": \"MID\",\n\t\t\"scored\": \"Scored\",\n\t\t\"football.half\": \"Half\",\n\t\t\"shootoutkick.retaken\": \"Shootout Kick retaken\",\n\t\t\"goal.var_overturned\": \"VAR Decision: No Goal\",\n\t\t\"cardred.var_overturned\": \"VAR Decision: No Red card\",\n\t\t\"penaltykick.var_overturned\": \"VAR Decision: No Penalty kick\",\n\t\t\"goal.var_stands\": \"VAR Decision: Goal\",\n\t\t\"cardred.var_stands\": \"VAR Decision: Red Card stands\",\n\n\t\t\"REGULAR\" : \"PERIOD\",\n\t\t\"Kick off\" : \"KICKOFF\",\n\t\t\"EXTRATIME\" : \"EXTRATIME\",\n\t\t\"HALFTIME\" : \"HALFTIME\",\n\t\t\"FULLTIME\" : \"FULLTIME\",\n\t\t\"PENALTIES\" : \"PENALTIES\",\n\t\t\"P\" : \"P\",\n\t\t\"H\" : \"H\",\n\t\t\"ET\" : \"ET\",\n\t\t\"CAPTAIN_ABBREV\" : \"CAPTAIN_ABBREV\",\n\t\t\"made\" : \"made\",\n\t\t\"missed\" : \"missed\",\n\t\t\"successful\" : \"successful\",\n\t\t\"tie\" : \"tie\",\n\t\t\"lead by %1\" : \"lead by %1\",\n\t\t\"trail by %1\" : \"trail by %1\",\n\t\t\"OWNGOAL_ABBREV\" : \"OG\"\n\t};\n\n\tvar data = [];\n\tvar scorers = {\"1\":\"\",\"2\":\"\"};\n\tvar maxTime = 90;\n\tvar timelineGrade = periodLength(45);\n\tvar ticks = Math.floor(maxTime \/ timelineGrade, 1);\n\n\tjQuery(\"#aj_1_scorers\").html(scorers[1]);\n\tjQuery(\"#aj_2_scorers\").html(scorers[2]);\n\n\tdata.sort(compare);\n\tdata.sort(compareSubstitutions);\n\t\t\n\tdata['periodLengthREGULAR'] = 45;\n\tdata['periodsMax'] = 2;\n\tdata['periodLengthEXTRATIME'] = 0;\n\n\tjQuery(\"#clock-time\").text(maxTime + \"'\");\n\tjQuery(\"#timeline-labels\").empty();\n\tjQuery(\"#timeline-clock\").empty();\n\tjQuery(\".timeline-frame div\").remove();\n\n\tif (maxTime > 0) {\n\t\tjQuery(\".football .clock-summary .period\").text('Full Time');\n\t}\n\n\tfor (i = 0; i <= (ticks); i++) {\n\t\tvar timeline_period = '';\n\t\tvar timeline_period_class = 'time';\n\t\tvar timeline_period_clock = 0.9;\n\n\t\tif ((i * timelineGrade) == 0) {\n\t\t\ttimeline_period = 'Kick-Off';\n\t\t\ttimeline_period_class = 'kickoff';\n\t\t\ttimeline_period_clock = 0.9;\n\n\t\t} else if ((i * timelineGrade) == data['periodLengthREGULAR']) {\n\t\t\ttimeline_period = 'HALFTIME';\n\t\t\ttimeline_period_class = \"halftime\";\n\t\t\ttimeline_period_clock = 0.9;\n\n\t\t} else if ((i * timelineGrade) == (data['periodsMax'] * data['periodLengthREGULAR']) && (i * timelineGrade) < maxTime) {\n\t\t\ttimeline_period = 'EXTRA-TIME' + \" 1\";\n\t\t\ttimeline_period_class = 'extratime';\n\t\t\ttimeline_period_clock = 0.8;\n\n\t\t} else if ((i * timelineGrade) == (data['periodsMax'] * data['periodLengthREGULAR']) + data['periodLengthEXTRATIME'] && (i * timelineGrade) < maxTime) {\n\t\t\ttimeline_period = 'EXTRA-TIME' + \" 2\";\n\t\t\ttimeline_period_class = 'extratime';\n\t\t\ttimeline_period_clock = 0.8;\n\n\t\t} else if ((i * timelineGrade) == maxTime) {\n\t\t\ttimeline_period = 'FULL-TIME';\n\t\t\ttimeline_period_class = 'fulltime';\n\t\t\ttimeline_period_clock = 0.8;\n\t\t}\n\t\tjQuery(\"#timeline-clock\").append(\"<span class = 'timeline_period' style='left:\" + (((i * timelineGrade) \/ maxTime * 100) + timeline_period_clock) + \"%' >\" + parseInt((i * timelineGrade)) + \"' <\/span>\");\n\n\t\tjQuery(\".timeline-frame\").append(\"<div class = \" + timeline_period_class + \" style='left:\" + (((i * timelineGrade) \/ maxTime * 100)) + \"%' ><span>\" + timeline_period + \"<\/span><\/div>\");\n\t\tjQuery(\"#timeline-labels\").append(\"<span style='left:\" + (((i * timelineGrade) \/ maxTime * 98.6)) + \"%' ><\/span>\");\n\n\t}\n\n\tvar lastActionTimeAdded = data.slice(-1)[0]['ta'];\n\n\tif (lastActionTimeAdded) {\n\t\tjQuery(\"#aj_timeAdded\").html(\"+\" + lastActionTimeAdded + \"'\");\n\t}\n\n\tvar previousTimelineData = null;\n\tvar extratime = false;\n\n\tvar penaltiesArray = [];\n\tvar customIndex = 0;\n\tvar penalties = false;\n\tvar secondaryScoreString = [];\n\tsecondaryScoreString[1] = 0;\n\tsecondaryScoreString[2] = 0;\n\n\n\tjQuery.each(data, function (index, p) {\n\n\t\tif (p['actionType'] == 'penaltykick' && p['subType'] == 'var_overturned' ||\n\t\t\tp['actionType'] == 'penaltykick' && p['subType'] == 'var_stands') {\n\t\t\treturn;\n\t\t}\n\n\t\tif (p['periodType'] == 'PENALTYSHOOTOUT') {\n\t\t\tif (!penalties) {\n\t\t\t\tjQuery(' #aj_1_ball_penalties').html('<div class=\"penalties\"><\/div>');\n\t\t\t\tjQuery(' #aj_2_ball_penalties').html('<div class=\"penalties\"><\/div>');\n\t\t\t\tfor (i = 0; i < 5; i++) {\n\t\t\t\t\tjQuery(\"#aj_1_ball_penalties .penalties\").append(\"<span><div class='aj\" + i + \" dot not-filled'><\/div><\/span>\");\n\t\t\t\t\tjQuery(\"#aj_2_ball_penalties .penalties\").append(\"<span><div class='aj\" + i + \" dot not-filled'><\/div><\/span>\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tpenalties = true;\n\t\t}\n\n\t\tif (p['periodType'] == 'PENALTYSHOOTOUT' && p['tno'] != 0) {\n\t\t\tjQuery(\".extraDetail #aj_\" + p['tno'] + \"_ball_penalties\").show();\n\t\t\tjQuery(\"#aj_\" + p['tno'] + \"_penalties\").text(\"(0)\");\n\n\t\t\tif (p['actionType'] === 'shootoutkick') {\n\t\t\t\tpenaltiesArray[customIndex] = p;\n\t\t\t\tcustomIndex++;\n\t\t\t}\n\t\t\tpertype = translate(\"PEN\");\n\t\t\tptype = \"pen\";\n\t\t\tperstring = translate(\"Penalties\");\n\t\t\tpkey = ptype;\n\n\t\t\tpernum = \"\";\n\t\t\tp['ta'] = \"\";\n\t\t\tp['gt'] = \"\";\n\t\t\tjQuery(\".inPenalties\").show();\n\t\t\tjQuery(\"#aj_\" + p['tno'] + \"_scorers\").hide();\n\t\t\tjQuery(\"#aj_\" + p['tno'] + \"_scorers\").hide();\n\n\t\t\tjQuery(\"#aj_timeAdded\").text(translate(\"PENALTIES\"));\n\t\t\tjQuery(\"#aj_timeAdded\").addClass(\"grey-text\");\n\t\t}\n\n\t\tvar pernum = p['period'];\n\t\tvar ptype = 'reg';\n\t\tvar pkey = pernum;\n\t\tvar pertype = translate(\"H\");\n\t\tvar clockValTa = parseInt(p['gt']);\n\t\tvar clockVal = clockValTa;\n\t\tvar perstring = translate(\"Period\");\n\t\tvar timeline_period_labels = '';\n\t\tvar hrActionFlag = '';\n\t\tbpx = 0;\n\t\tstr = buildTipDescription(p, data);\n\t\tvar position45X = -0.65;\n\t\tvar actionEveryHalfStarts = '';\n\t\tvar teamNumber = p['tno'];\n\n\t\tif (p['subType'] == \"own\") {\n\t\t\tif (teamNumber == 1) {\n\t\t\t\tteamNumber = 2;\n\t\t\t} else {\n\t\t\t\tteamNumber = 1;\n\t\t\t}\n\t\t}\n\t\tjQuery(\"#timeline-labels span.tl-cardyellow.secondyellow\").remove();\n\t\tjQuery(\"#timeline-labels\").find(\".tl-penaltykick.awarded\").remove();\n\t\tjQuery(\"#timeline-labels\").find(\".tl-substitution.out\").remove();\n\t\tjQuery(\"#timeline-labels\").find(\".tl-penaltykick.taken.success-1\").remove();\n\n\n\t\tif (p['periodType'] == 'EXTRATIME') {\n\t\t\tpertype = translate(\"ET\");\n\t\t\tptype = \"ot\";\n\t\t\textratime = true;\n\t\t\tperstring = translate(\"EXTRATIME\");\n\t\t\tpkey = ptype + pernum;\n\t\t}\n\n\t\tif (clockVal <= data['periodLengthREGULAR']) {\n\n\t\t\tif (clockVal == 1) {\n\t\t\t\tposition45X = -0.75;\n\t\t\t\t\/\/ actionEveryHalfStarts = \"actionEveryHalfStarts\" + teamNumber;\n\t\t\t} else if (clockVal == data['periodLengthREGULAR']) {\n\t\t\t\tposition45X = -0.55;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfEnds\" + teamNumber;\n\t\t\t} else {\n\t\t\t\tposition45X = -0.7;\n\t\t\t}\n\t\t}\n\t\tif (clockVal > data['periodLengthREGULAR']) {\n\n\t\t\tif (clockVal == data['periodLengthREGULAR'] + 1) {\n\t\t\t\tposition45X = -0.45;\n\t\t\t\tbpx = 3;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfStarts\" + teamNumber;\n\t\t\t} else {\n\t\t\t\tposition45X = 0.1;\n\t\t\t}\n\n\t\t}\n\t\tif (clockVal >= data['periodLengthREGULAR'] * data['periodsMax']) {\n\t\t\tif (clockVal == data['periodLengthREGULAR'] * data['periodsMax']) {\n\t\t\t\tposition45X = 0.3;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfEnds\" + teamNumber;\n\n\t\t\t} else if (clockVal == data['periodLengthREGULAR'] * data['periodsMax'] + 1) {\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfStarts\" + teamNumber;\n\t\t\t\tposition45X = 0.05;\n\t\t\t} else {\n\t\t\t\tposition45X = 0;\n\t\t\t}\n\n\t\t}\n\t\tif (clockVal >= (data['periodLengthREGULAR'] * data['periodsMax']) + data['periodLengthEXTRATIME']) {\n\t\t\tif (clockVal == (data['periodLengthREGULAR'] * data['periodsMax']) + data['periodLengthEXTRATIME']) {\n\t\t\t\tposition45X = -0.05;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfEnds\" + teamNumber;\n\t\t\t} else if (clockVal == (data['periodLengthREGULAR'] * data['periodsMax']) + data['periodLengthEXTRATIME'] + 1) {\n\t\t\t\tposition45X = 0.25;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfStarts\" + teamNumber;\n\t\t\t} else if (clockVal == (data['periodLengthREGULAR'] * data['periodsMax']) + (data['periodLengthEXTRATIME']*2)) {\n\t\t\t\tposition45X = 0.3;\n\t\t\t\tactionEveryHalfStarts = \"actionEveryHalfEnds\" + teamNumber;\n\t\t\t} else {\n\t\t\t\tposition45X = 0.3;\n\t\t\t}\n\t\t}\n\t\tif (data['periodType'] == \"EXTRATIME\" || data['periodType'] == \"PENALTYSHOOTOUT\") {\n\t\t\tif (clockVal <= data['periodLengthREGULAR'] && clockVal > 1 && clockVal < data['periodLengthREGULAR'])  {\n\t\t\t\tposition45X = -0.7;\n\t\t\t}\n\n\t\t}\n\t\tif (typeof p['ta'] !== 'undefined') {\n\t\t\tbpx = -2;\n\t\t\tposition45X = 0;\n\t\t\tclockValTa = parseInt(p['tap']);\n\t\t\tclockVal = clockValTa + \"' +\" + p['ta'];\n\t\t\tif (p['periodType'] === 'REGULAR') {\n\t\t\t\thrActionFlag = \"<hr class='hrflag'>\";\n\t\t\t\ttimeline_period_labels = 'addedTime';\n\t\t\t\tif (p['period'] == 1) {\n\t\t\t\t\tposition45X = 0.2;\n\t\t\t\t} else {\n\t\t\t\t\tposition45X = 0.5;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (p['periodType'] === 'EXTRATIME') {\n\t\t\t\ttimeline_period_labels = 'addedTime';\n\t\t\t\thrActionFlag = \"<hr class='hrflag'>\";\n\t\t\t\tvar timeline_period_labels = 'addedTime';\n\t\t\t\tposition45X = 0.70;\n\t\t\t}\n\t\t\tif (clockValTa == maxTime) {\n\t\t\t\thrActionFlag = \"<hr class='hrflag'>\";\n\t\t\t\ttimeline_period_labels = 'addedTime';\n\t\t\t\tposition45X = 1.8;\n\t\t\t}\n\t\t}\n\t\tvar positionX = ((clockValTa \/ maxTime * 98.6) + position45X) < 98.6 ? ((clockValTa \/ maxTime * 98.6) + position45X) : 98.6;\n\t\tpositionX = positionX < 0 ? 0 : positionX;\n\t\tif (p['qualifiers'].indexOf('secondyellow') <= 0 && p['periodType'] != \"PENALTYSHOOTOUT\") {\n\n\t\t\tvar teamNumber = p['tno'];\n\n\t\t\tif (p['subType'] == \"own\") {\n\t\t\t\tif (teamNumber == 1) {\n\t\t\t\t\tteamNumber = 2;\n\t\t\t\t} else {\n\t\t\t\t\tteamNumber = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (previousTimelineData != null) {\n\t\t\t\tif (\n\t\t\t\t\t\tp['actionType'] == \"substitution\" &&\n\t\t\t\t\t\tpreviousTimelineData['actionType'] == \"substitution\" &&\n\t\t\t\t\t\tpreviousTimelineData['teamNumber'] == parseInt(teamNumber) &&\n\t\t\t\t\t\tparseInt(previousTimelineData['gt']) == parseInt(p['gt'])\n\t\t\t\t) {\n\t\t\t\t\tplayer = \"\";\n\t\t\t\t\tplayer1 = \"\";\n\t\t\t\t\tsnum = \"\";\n\t\t\t\t\tsnum1 = \"\";\n\t\t\t\t\tstrPlayer = \"\";\n\t\t\t\t\tstrPlayer1 = \"\";\n\t\t\t\t\tif (previousTimelineData['shirtNumber']) {\n\t\t\t\t\t\tsnum1 = p['shirtNumber'];\n\t\t\t\t\t\tsnum = previousTimelineData['shirtNumber'];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (previousTimelineData['player']) {\n\t\t\t\t\t\tplayer1 = p['player'];\n\t\t\t\t\t\tplayer = previousTimelineData['player'];\n\t\t\t\t\t\tif (previousTimelineData['pno']) {\n\t\t\t\t\t\t\tvar pbppdata1 = data['tm'][p['tno']][\"pl\"][p['pno']];\n\t\t\t\t\t\t\tvar pbppdata = data['tm'][previousTimelineData['tno']][\"pl\"][previousTimelineData['pno']];\n\t\t\t\t\t\t\tplayer1 = formatName(pbppdata, p['player'], \"short\");\n\t\t\t\t\t\t\tplayer = formatName(pbppdata1, previousTimelineData['player'], \"short\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdescSubType = \"<div class='actionType'>\" + translate(p['actionType']) + \"<\/div>\";\n\t\t\t\t\tif (player) {\n\t\t\t\t\t\tstrPlayer1 = \"<div class='actionPlayer \" + p['subType'] + \"'><span>&#8593;<\/span><b>\" + snum1 + \", \" + player1 + \"<\/b><\/div>\";\n\t\t\t\t\t\tdescPlayer = \"<div class='actionPlayer \" + previousTimelineData['subType'] + \"'><span>&#8595;<\/span><b>\" + snum + ', ' + player + \"<\/b><\/div>\";\n\t\t\t\t\t}\n\t\t\t\t\tstr = descSubType + descPlayer + \"<div class='actionType OutIn'>\" + translate(previousTimelineData['subType']) + \"\/\" +\n\t\t\t\t\t\t\ttranslate(p['subType']) + \"<\/div>\" + strPlayer1 + \"<\/div>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = \"<div class='actionTypeName'><div class='tip-clock'>\" + pertype + p['period'] + \" - \" + clockVal + \"'<\/div>\" + str + \"<\/div>\";\n\n\t\t\tvar gt_p = parseInt(p['gt']);\n\t\t\tif (p['subType'] != \"awarded\") {\n\n\n\t\t\t\tjQuery(\"#timeline-labels\").append(\"<span data-gt = \" + parseInt(p['gt']) + \" class='\" + timeline_period_labels + \" tl-\" + p['actionType'] + \" \" + p['subType'] + \" \" + p['qualifiers'] + \" team-\" + teamNumber + \" \" + p['periodType'] + \"-\" + gt_p + \" success-\" + p['success'] + \" an-\" + p['actionNumber'] + \" \" + actionEveryHalfStarts + \"' style='left:\" + (positionX + position45X) + \"%; background-position-x:\" + bpx + \"px; '><span class='timeline-tip full-width'>\" + str + \"<\/span>\" + hrActionFlag + \"<\/span>\");\n\n\t\t\t\tpreviousTimelineData = p;\n\t\t\t\tpreviousTimelineData['teamNumber'] = teamNumber;\n\n\t\t\t\tvar actionSize = 20;\n\n\t\t\t\tjQuery(\"#timeline-labels span:not(.addedTime):not(.out).team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + gt_p).each(function (i, obj) {\n\t\t\t\t\tvar prev = jQuery(obj).prev().not(\".addedTime\");\n\t\t\t\t\tvar next = jQuery(obj).next().not(\".addedTime\");\n\n\t\t\t\t\tii = ++i;\n\t\t\t\t\tif (ii>1){\n\t\t\t\t\t\tjQuery(obj).addClass(\"rmArrow\");\n\t\t\t\t\t}\n\t\t\t\t\tif (obj.classList.contains(\"team-1\")) {\n\t\t\t\t\t\tjQuery(obj).css({\"top\": -(actionSize * ii) - 10 + \"px\"});\n\t\t\t\t\t}\n\t\t\t\t\tif (obj.classList.contains(\"team-2\")) {\n\t\t\t\t\t\tjQuery(obj).css({\"top\": (actionSize * ii) - 10 + \"px\"});\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (p[\"periodType\"] == \"REGULAR\" && p[\"period\"] == 1){\n\t\t\t\t\t\tvar pL = data[\"periodLengthREGULAR\"];\n\t\t\t\t\t}\n\t\t\t\t\tif (p[\"periodType\"] == \"REGULAR\" && p[\"period\"] == 2){\n\t\t\t\t\t\tvar pL = data[\"periodLengthREGULAR\"]*2;\n\t\t\t\t\t}\n\t\t\t\t\tif (p[\"periodType\"] == \"EXTRATIME\" && p[\"period\"] == 1){\n\t\t\t\t\t\tvar pL = data[\"periodLengthREGULAR\"]*2+data[\"periodLengthEXTRATIME\"];\n\t\t\t\t\t}\n\t\t\t\t\tif (p[\"periodType\"] == \"EXTRATIME\" && p[\"period\"] == 2){\n\t\t\t\t\t\tvar pL = (data[\"periodLengthREGULAR\"]*2)+(data[\"periodLengthEXTRATIME\"]*2);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (parseInt(obj.dataset.gt) % 2 != 0) {\n\t\t\t\t\t\tjQuery(obj).addClass(\"odd\" + pL);\n\n\t\t\t\t\t\tif(parseInt(obj.dataset.gt) == prev.data(\"gt\")+1) {\n\t\t\t\t\t\t\tvar objMarginTop = Math.abs(jQuery(prev).css(\"margin-top\").replace(\"px\", \"\"));\n\t\t\t\t\t\t\tif (objMarginTop == 0){\n\t\t\t\t\t\t\t\t\/\/106\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"'+prev.data(\"gt\")+'\"]').removeClass(\"even\" + pL);\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"'+prev.data(\"gt\")+'\"]').addClass(\"odd\" + pL);\n\t\t\t\t\t\t\t\t\/\/ jQuery('span[data-gt=\"'+prev.data(\"gt\")+'\"]').is(\"odd\" + pL).css(\"margin-top\", 0);\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"'+prev.data(\"gt\")+'\"]').css(\"margin-top\", 0);\n\t\t\t\t\t\t\t\t\/\/107\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"'+obj.dataset.gt+'\"]').removeClass(\"odd\" + pL);\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"'+obj.dataset.gt+'\"]').addClass(\"even\" + pL);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tjQuery(obj).addClass(\"even\" + pL);\n\t\t\t\t\t\tif(parseInt(obj.dataset.gt) == prev.data(\"gt\")+1) {\n\t\t\t\t\t\t\tvar objMarginTop = Math.abs(jQuery(prev).css(\"margin-top\").replace(\"px\", \"\"));\n\t\t\t\t\t\t\tif (objMarginTop != 0) {\n\t\t\t\t\t\t\t\t\/\/108\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"' + obj.dataset.gt + '\"]').removeClass(\"even\" + pL);\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"' + obj.dataset.gt + '\"]').addClass(\"odd\" + pL);\n\t\t\t\t\t\t\t\tjQuery('span[data-gt=\"' + obj.dataset.gt + '\"]').css(\"margin-top\", 0);\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (obj.classList.contains(\"even\" + pL) && obj.classList.contains(\"team-1\")) {\n\t\t\t\t\t\tif (prev.data(\"gt\") && prev.hasClass(\"team-1\")) {\n\t\t\t\t\t\t\t(bigest(teamNumber, pL) == 0) ?  sk = 0 :  sk = 10;\n\t\t\t\t\t\t\tif (bigest(teamNumber, pL) > 0){\n\t\t\t\t\t\t\t\tjQuery(obj).css({\"margin-top\": -bigest(teamNumber, pL) + sk + \"px\"});\n\t\t\t\t\t\t\t\tvar spanAfter = bigest(teamNumber, pL) + sk;\n\n\t\t\t\t\t\t\t\tjQuery(\"<style>#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + gt_p + \":not(.actionEveryHalfStarts\" + teamNumber + \"):not(.actionEveryHalfEnds\" + teamNumber + \"):not(.odd\" + pL + \")::after{top: \" + spanAfter + \"px;}<\/style>\").appendTo(\"body\");\n\t\t\t\t\t\t\t\tjQuery(\"<style>#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + gt_p + \".actionEveryHalfEnds1::after{top: \" + (spanAfter+5) + \"px;}<\/style>\").appendTo(\"body\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (obj.classList.contains(\"even\" + pL) && obj.classList.contains(\"team-2\")) {\n\t\t\t\t\t\tif (prev.data(\"gt\") && prev.hasClass(\"team-2\")) {\n\t\t\t\t\t\t\t(bigest(teamNumber, pL) == 0) ?  sk = 0 :  sk = 10;\n\t\t\t\t\t\t\tif (bigest(teamNumber, pL) > 0) {\n\t\t\t\t\t\t\t\tjQuery(obj).css({\"margin-top\": bigest(teamNumber, pL) + sk + \"px\"});\n\t\t\t\t\t\t\t\tvar spanAfter = bigest(teamNumber, pL) + sk;\n\t\t\t\t\t\t\t\tjQuery(\"<style>#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + gt_p + \":not(.actionEveryHalfStarts\" + teamNumber + \"):not(.actionEveryHalfEnds\" + teamNumber + \"):not(.odd\" + pL + \")::after{top: \" + -spanAfter + \"px;}<\/style>\").appendTo(\"body\");\n\t\t\t\t\t\t\t\tjQuery(\"<style>#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + gt_p + \".actionEveryHalfEnds2::after{top: \" + -spanAfter + \"px;}<\/style>\").appendTo(\"body\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\t\t\t\tif ((jQuery(\"#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + parseInt(p['gt'])).hasClass(\"addedTime\")) &&\n\t\t\t\t\t\t(!jQuery(\"#timeline-labels span.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + parseInt(p['gt'])).hasClass(\"tl-substitution out\"))) {\n\t\t\t\t\tjQuery(\"#timeline-labels span.addedTime.team-\" + teamNumber + \".\" + p['periodType'] + \"-\" + parseInt(p['gt'])).addClass(p['periodType'] + \"at-\" + clockValTa);\n\t\t\t\t\tvar QualifierSizeTeam2 = jQuery(\"#timeline-labels span.addedTime.team-\" + teamNumber + \".\" + p['periodType'] + \"at-\" + clockValTa).length;\n\t\t\t\t\tvar position = -31;\n\t\t\t\t\tfor (i = 0; i < QualifierSizeTeam2; i++) {\n\t\t\t\t\t\tvar team1 = jQuery(\"span.addedTime.team-\" + teamNumber + \".\" + p['periodType'] + \"at-\" + clockValTa)[i];\n\t\t\t\t\t\tjQuery(\"#timeline-labels\").find(team1).css({\"margin-left\": position + \"px\"});\n\n\t\t\t\t\t\tvar team11 = jQuery(\"span.addedTime.team-\" + teamNumber + \".\" + p['periodType'] + \"at-\" + clockValTa + \" hr.hrflag\")[i + 1];\n\t\t\t\t\t\tjQuery(\"#timeline-labels\").find(team11).css({\"display\": \"none\"});\n\n\t\t\t\t\t\tvar team11 = jQuery(\"span.addedTime.team-\" + teamNumber + \".\" + p['periodType'] + \"at-\" + clockValTa)[i + 1];\n\t\t\t\t\t\tjQuery(\"#timeline-labels\").find(team11).addClass('rmArrow');\n\t\t\t\t\t\tposition = position - 21;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (parseInt(p['gt']) > 65) {\n\t\t\t\t\tjQuery(\"#timeline-labels span:not(.addedTime).team-1.\" + p['periodType'] + \"-\" + parseInt(p['gt']) + \" span.timeline-tip\").css({\n\t\t\t\t\t\t\"margin-left\": \"-140px\",\n\t\t\t\t\t\t\"bottom\": \"-20px\"\n\t\t\t\t\t});\n\t\t\t\t\tjQuery(\"#timeline-labels span:not(.addedTime).team-2.\" + p['periodType'] + \"-\" + parseInt(p['gt']) + \" span.timeline-tip\").css({\n\t\t\t\t\t\t\"margin-left\": \"-140px\",\n\t\t\t\t\t\t\"top\": \"-20px\"\n\t\t\t\t\t});\n\n\t\t\t\t\tif (parseInt(p['gt']) == 89) {\n\t\t\t\t\t\tjQuery(\"#timeline-labels span:not(.addedTime).team-1.\" + p['periodType'] + \"-\" + 90 + \" span.timeline-tip\").css({\n\t\t\t\t\t\t\t\"margin-left\": \"-140px\",\n\t\t\t\t\t\t\t\"bottom\": \"-20px\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tjQuery(\"#timeline-labels span:not(.addedTime).team-2.\" + p['periodType'] + \"-\" + 90 + \" span.timeline-tip\").css({\n\t\t\t\t\t\t\t\"margin-left\": \"-140px\",\n\t\t\t\t\t\t\t\"top\": \"-20px\"\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar bigestTop = 0;\n\t\t\tvar objMarginTop = 0;\n\t\t\tjQuery(\"span[class*=tl-]\").each(function (i, obj) {\n\t\t\t\tif (!obj.classList.contains(\"addedTime\")) {\n\t\t\t\t\tvar objTop = Math.abs(jQuery(obj).css(\"top\").replace(\"px\", \"\"));\n\t\t\t\t\tvar objMarginTop = Math.abs(jQuery(obj).css(\"margin-top\").replace(\"px\", \"\"));\n\t\t\t\t\tif (objMarginTop > 0){\n\t\t\t\t\t\tif (bigestTop < objTop + objMarginTop) {\n\t\t\t\t\t\t\tbigestTop = objTop + objMarginTop;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (bigestTop < objTop) {\n\t\t\t\t\t\t\tbigestTop = objTop;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t\/\/ bigestTop = 40;\n\t\t\t\t\tjQuery(\".timeline\").addClass('onlyAddedTime');\n\t\t\t\t\tjQuery(\".row.scoreboard\").addClass('onlyAddedTime');\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (bigestTop >= 30) {\n\t\t\t\tvar mobileWidth = jQuery(window).width();\n\t\t\t\t\/\/ min 100\n\t\t\t\tjQuery(\".timeline\").css('height', (bigestTop) * 2 + 80 + 'px');\n\n\t\t\t\tif (mobileWidth < 991) {\n\t\t\t\t\tjQuery(\".row.scoreboard\").css('height', 'auto');\n\t\t\t\t} else {\n\t\t\t\t\tjQuery(\".row.scoreboard\").css('height', (bigestTop) * 2 + 270 + 'px');\n\t\t\t\t}\n\t\t\t\tjQuery(\".teams-logos\").css({\n\t\t\t\t\t'padding-top': (bigestTop) + 6 + 'px',\n\t\t\t\t\t'padding-left': 10 + 'px',\n\t\t\t\t\t'height': bigestTop * 2 + 64 + 'px'\n\t\t\t\t});\n\t\t\t\tjQuery(\"#timeline-labels span.addedTime.team-1\").css({\n\t\t\t\t\t'margin-top': -(bigestTop) + 14 + 'px'\n\t\t\t\t});\n\t\t\t\tjQuery(\"#timeline-labels span hr\").css({'height': bigestTop + 22 + 'px'});\n\t\t\t\tjQuery(\"#timeline-labels span.addedTime.team-2\").css({\n\t\t\t\t\t'margin-top': (bigestTop) - 14 + 'px'\n\t\t\t\t});\n\t\t\t\t\/\/ jQuery(\".football header nav\").css('margin-top', -50 + 'px');\n\t\t\t\tjQuery(\".timeline .team1\").css('padding-top', (bigestTop) + 10 + 'px');\n\t\t\t\tjQuery(\".arrow-left\").css({'top': (bigestTop) + 35 + 'px'});\n\t\t\t\tjQuery(\".arrow-right\").css({'top': (bigestTop) + 35 + 'px'});\n\t\t\t}\n\t\t}\n\n\t});\n\n\tif (extratime || data['periodType'] == \"PENALTYSHOOTOUT\") {\n\t\tformatAddedTimeActions(\"#timeline-labels span.REGULAR-90\", -11);\n\t\t\/\/ formatAddedTimeActions(\"#timeline-labels span.addedTime.EXTRATIMEat-120\", 1);\n\t\tformatAddedTimeActions(\"#timeline-labels span.addedTime.REGULARat-45\", -4);\n\t\tformatAddedTimeActions(\"#timeline-labels span.REGULAR-45\", -4);\n\t\tformatAddedTimeActions(\"#timeline-labels span.REGULAR-1\", 2.5);\n\t\tformatAddedTimeActions(\"#timeline-labels span.REGULAR-89\", -4);\n\t}\n\n\n\tjQuery.each(penaltiesArray, function (index, p) {\n\t\tif (p['success'] == 1) {\n\t\t\tsecondaryScoreString[p['tno']]++;\n\t\t\tjQuery(\"#aj_\" + p['tno'] + \"_penalties\").text(\"(\" + secondaryScoreString[p['tno']] + \")\");\n\t\t\t_fillPenalty(p, \"green\");\n\t\t} else {\n\t\t\t_fillPenalty(p, \"red\");\n\t\t}\n\t})\n\n\tfunction _fillPenalty(p, color) {\n\t\tlet emptyPenaltyBall = jQuery(\"#aj_\" + p['tno'] + \"_ball_penalties .penalties .not-filled:first\");\n\t\tif (emptyPenaltyBall.length != 0) {\n\t\t\temptyPenaltyBall.removeClass(\"not-filled\");\n\t\t\temptyPenaltyBall.addClass(color);\n\t\t} else {\n\t\t\tjQuery(\"#aj_\" + p['tno'] + \"_ball_penalties .penalties\").append('<span><div class=\"dot ' + color + '\"><\/div><\/span>');\n\t\t}\n\t}\n\n\tfunction formatAddedTimeActions(period, value) {\n\t\tjQuery(period).each(function (i, obj) {\n\t\t\tvar marginLeft = jQuery(obj).css('margin-left');\n\t\t\tjQuery(obj).css('margin-left', parseInt(marginLeft) + value + \"px\");\n\t\t});\n\t}\n\n\tfunction periodLength(period) {\n\t\tvar timelineGrade = 15;\n\t\tif (period != 45) {\n\t\t\ttimelineGrade = period \/ 2;\n\t\t}\n\t\treturn timelineGrade;\n\t}\n\n\tfunction compare(a, b) {\n\t\tif (a.timeActual< b.timeActual)\n\t\t\treturn -1;\n\t\tif (a.timeActual > b.timeActual)\n\t\t\treturn 1;\n\t\treturn 0;\n\t}\n\n\tfunction compareSubstitutions(a, b) {\n\t\tif(navigator.userAgent.search(\"Firefox\") >= 0) {\n\t\t\tif(a.timeActual == b.timeActual) {\n\t\t\t\tif (a.subType == \"in\" && parseInt(a.actionNumber  +1) == b.actionNumber) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t}\n\t\t} else{\n\t\t\tif(a.timeActual == b.timeActual) {\n\t\t\t\tif (a.subType == \"out\" && b.actionNumber  +1 == a.actionNumber) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tfunction buildTipDescription(action, data) {\n\t\tdesc = \"\";\n\t\tdes = \"\";\n\t\tplayer = \"\";\n\t\tsnum = \"\";\n\t\tvar actionSubType = translate(action['actionType'], action['subType']);\n\t\tif (action['shirtNumber']) {\n\t\t\tsnum = action['shirtNumber'];\n\t\t}\n\n\t\tplayer = action['player'];\n\n\t\tif (player) {\n\t\t\tdesc = \"<div class='actionPlayer'>\" + snum + ', ' + player + \"<\/div>\";\n\t\t}\n\n\t\tvar goalmade = '';\n\t\tif (action['qualifiers'].indexOf('penaltykick') >= 0) {\n\t\t\tgoalmade = ' - ' + translate('penaltykick.taken');\n\t\t}\n\n\t\tif (action['actionType'] == \"penaltykick\" && action['subType'] == 'taken' && action['success'] == 0) {\n\t\t\tgoalmade = ' - ' + translate('penaltykick.taken');\n\t\t\tactionSubType = translate('missed');\n\t\t}\n\n\t\tdesc = \"<div class='actionType'>\" + actionSubType + goalmade + \"<\/div>\" + desc;\n\n\t\treturn desc;\n\t}\n\n\tfunction bigest(team, pl){\n\t\tvar objTop = 0;\n\t\t\/\/ jQuery(\"span.odd\" + pl).css(\"margin-top\", 0);\n\t\tjQuery(\"span.odd\" + pl).each(function (i, obj) {\n\t\t\tif (obj.classList.contains(\"team-\" + team)) {\n\t\t\t\tobjTop = Math.abs(jQuery(obj).css(\"top\").replace(\"px\", \"\"));\n\t\t\t}\n\t\t});\n\t\treturn objTop;\n\t}\n\n\tfunction translate(string, string2, variable1, variable2) {\n\n\t\tif (string2) {\n\t\t\tstring = string + '.' + string2;\n\t\t}\n\t\tif (string in lexicon) {\n\n\t\t\ts = lexicon[string];\n\t\t\tif (variable1) {\n\t\t\t\ts = s.replace('%1', variable1);\n\t\t\t}\n\t\t\tif (variable2) {\n\t\t\t\ts = s.replace('%2', variable2);\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\treturn string;\n\t}\n\n\tvar timelineStepsMoved = 0;\n\n\tjQuery(\".timeline-nav\").on(\"click\", function () {\n\t\tif (timelineStepsMoved == 0) {\n\t\t\tjQuery(\".timeline\").css(\"right\", 0);\n\t\t}\n\t\tvar toRight = jQuery(\".timeline\").css(\"right\");\n\t\tvar rightPosOfTimeline = jQuery('.timeline').offset().left + jQuery('.timeline').width() - 75 - jQuery('.timeline-wrapper').width();\n\n\t\tif (jQuery(this).hasClass(\"arrow-right\")) {\n\t\t\tif (rightPosOfTimeline > 0) {\n\t\t\t\tjQuery(\".timeline\").css(\"right\", parseInt(toRight) + 75 + \"px\");\n\t\t\t\ttimelineStepsMoved++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (timelineStepsMoved > 0) {\n\t\t\t\tjQuery(\".timeline\").css(\"right\", parseInt(toRight) - 75 + \"px\");\n\t\t\t\ttimelineStepsMoved--;\n\t\t\t}\n\t\t}\n\t});\n\n\tjQuery(\".timeline\").bind('touchstart', function () {\n\t\tjQuery(\".timeline\").css(\"right\", 0);\n\t});\n\n\tjQuery(window).resize(function () {\n\t\tjQuery(\".timeline\").css(\"right\", 0);\n\t\tjQuery(\".row.scoreboard\").css({\"height\": \"auto\"});\n\t\tvar mobileWidth = jQuery(window).width();\n\t\tif (mobileWidth > 991) {\n\t\t\t\/\/ jQuery(\".football header nav\").css('margin-top', -5 + 'px');\n\t\t} else {\n\t\t\t\/\/ jQuery(\".football header nav\").css('margin-top', -15 + 'px');\n\t\t}\n\t\ttimelineStepsMoved = 0;\n\t});\n\n\t});\n<\/script>\n\t    <\/div>\n<\/div>\n    <div class=\"hs-row\">\n        <span class=\"share\"><\/span>\n    <\/div>\n<div style=\"display:none;\">    \n    KUALA LUMPUR CITY FC 0 AT NEGERI SEMBILAN FC  3\n<br>\nOn 2026-08-22 17:00:00 At \n<\/div>\n\n\t<div class=\"selection-scroll matchnavigation\">\n        <div class=\"generic-list-menu\">\n            <a href = \"https:\/\/hosted.dcd.shared.geniussports.com\/MFL\/en\/competition\/2393\/match\/403764\/summary?\" class = \"menuoption  currentoption \">Summary<\/a>\n            <a href = \"https:\/\/hosted.dcd.shared.geniussports.com\/MFL\/en\/competition\/2393\/match\/403764\/boxscore?\" class = \"menuoption \">\n                            Match Statistics                        <\/a>\n            <a href = \"https:\/\/hosted.dcd.shared.geniussports.com\/MFL\/en\/competition\/2393\/match\/403764\/playbyplay?\" class = \"menuoption \">\n\t\t\t\t\t\t\tCommentary\t\t\t        \t<\/a>\n    <\/div>\n<\/div>\n\t\t<div class=\"summary\">\n\t\t\t<h3>Summary<\/h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class = \"summary-boxscore football-summary-boxscore block\" id = \"BLOCK_SUMMARY_BOXSCORE\" data-blockname = \"Comparisons\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class = \"summary-boxscore-detail\">\n\t\t\t\t\t\t\t\t<div class=\"summary-title\">\n\t\t\t\t\t\t\t\t\t<div class=\"summary-team-2 summary-team\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"summary-team-image\">\n\t\t\t\t\t\t\t\t\t\t\t<img src=\"https:\/\/images.statsengine.playbyplay.api.geniussports.com\/d30ee7d204ad9059c6984d5169ebc9e3T1.png\">\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"summary-team-name\"><span> NEGERI SEMBILAN FC <\/span><\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<h4><\/h4>\n\t\t\t\t\t\t\t\t<div class=\"table-wrap table-wrap-team2\">\n\t\t\t\t\t\t\t\t\t<table class=\"tableClass footable\">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>No<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"left\">Player<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">Pos<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">Mins<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">YC<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">RC<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">G<\/th>\n\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"boxscore-substitutes\">\n\t\t\t\t\t\t\t\t\t\t\t\t<td><\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td><span>Substitutes<\/span><\/td>\n\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t\t\t\t\t<\/tfoot>\n\t\t\t\t\t\t\t\t\t<\/table>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class = \"summary-boxscore-detail\">\n\t\t\t\t\t\t\t\t<div class=\"summary-title\">\n\t\t\t\t\t\t\t\t\t<div class=\"summary-team-2 summary-team\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"summary-team-image\">\n\t\t\t\t\t\t\t\t\t\t\t<img src=\"https:\/\/images.statsengine.playbyplay.api.geniussports.com\/d30ee7d204ad9059c6984d5169ebc9e3T1.png\">\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"summary-team-name\"><span> KUALA LUMPUR CITY FC <\/span><\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<h4><\/h4>\n\t\t\t\t\t\t\t\t<div class=\"table-wrap table-wrap-team2\">\n\t\t\t\t\t\t\t\t\t<table class=\"tableClass footable\">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>No<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"left\">Player<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">Pos<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">Mins<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">YC<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">RC<\/th>\n\t\t\t\t\t\t\t\t\t\t\t<th class=\"center\">G<\/th>\n\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"boxscore-substitutes\">\n\t\t\t\t\t\t\t\t\t\t\t\t<td><\/td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td><span>Substitutes<\/span><\/td>\n\t\t\t\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t\t\t\t\t<\/tfoot>\n\t\t\t\t\t\t\t\t\t<\/table>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class = \"summary-compare football-summary-compare dblock\" id = \"BLOCK_SUMMARY_COMPARE\" data-blockname = \"Comparisons\">\n\t\t\t\t\t\t<h4 style=\"display: none;\">\n\t\t\t\t\t\t<span class=\"homeCode\"><\/span>\n\t\t\t\t\t\t<span class=\"awayCode\"><\/span>\n\t\t\t\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class = \"summary-leaders dblock\" id = \"BLOCK_SUMMARY_LEADERS\" data-blockname = \"Standings\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n\t                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    <script type=\"text\/javascript\">\n        jQuery(function() {\n           checkFootable();\n        });\n        function checkFootable() {\n          if(jQuery().footable)    {\n              jQuery('table.footable').each(function (index, value) {\n                if(!jQuery(this).is('[class*=\"footable-done\"]')) {\n                  jQuery(this).hide();\n                  jQuery(this).addClass('footable-done');\n                  jQuery(this).footable({\n                     \"sorting\": {\n                         \"enabled\": true\n                     },\n                     'on': {\n                       'postinit.ft.table': function(e, ft) {\n                          jQuery(this).show();\n                        }\n                      }\n                  });\n                }\n              });\n          }\n          else {\n            setTimeout(\"checkFootable();\",1000);\n          }  \n        }\n        var popupMessage = \"Popup Blocker is enabled - Please add this site to your exception list in order to print\";\n    <\/script>\n"
}


