GRAPHENE


‘ + tag.value_rts + ”); }); } else { //no result was found console.log(“head template not loaded.”); } } }); //end ajaxCall //*** //*** Load FiltersList //*** SiteNameSpace.ajaxCall({ url: “/JSON/FiltersList.json”, type: “GET”, parameters: “”, dataType: “json”, WebServiceResult: false, errorMessage: “Error: Unable to get FiltersList.json”, success: function (results) { if (results != null) { tagsList = results.Tags_rls; //will filters or head arrive on page first? $.each(tagsList, function (i, tag) { $(‘#ulExploreTags’).append(‘

  • ‘ + tag.value_rts + ”); }); } else { //no result was found console.log(“filters data not loaded.”); } } }); //end ajaxCall //*** //*** Load Achivement Highlights template //*** SiteNameSpace.ajaxCall({ url: “/includes/template/AchievementsHighlightsList.html”, type: “GET”, parameters: “”, dataType: “text”, WebServiceResult: false, errorMessage: “Error: Unable to get AchievementtsHighlightsList template”, success: function (results) { if (results != null) { //***set the site data $(“#AchievementHighlightsPane”).append(results); console.log(“AchievementtsHighlightsList template loaded.”); } else { //no result was found console.log(“AchievementtsHighlightsList template not loaded.”); } } }); //end ajaxCall //*** //*** Load Footer template //*** SiteNameSpace.ajaxCall({ url: “/includes/template/foot.html”, type: “GET”, parameters: “”, dataType: “text”, WebServiceResult: false, errorMessage: “Error: Unable to get foot template”, success: function (results) { if (results != null) { //***set the site data $(“#FooterPane”).append(results); console.log(“foot template loaded.”); } else { //no result was found console.log(“foot template not loaded.”); } } }); //end ajaxCall ]]]]]]]]>]]]]]]>]]]]>]]>
  • @text ]]]]]]]]>]]]]]]>]]]]>]]>

    @AlternateText_rst @Title_rst ]]]]]]]]>]]]]]]>]]]]>]]>

    @Title_rst ]]]]]]]]>]]]]]]>]]]]>]]>

    0) $(“#Head”).append(“”); if (NewsItem.Metadata_Description_rst.length > 0) $(“#Head”).append(“”); if (NewsItem.Keywords_rst.length > 0) $(“#Head”).append(“”); $(“#Head”).append(“”); $(“#Head”).append(“”); //*** BreadCrumb list in top main column for (var i = 0; i < NewsItem.BreadCrumbs_rls.length; i++) { var relatedItem; if (i == 0) relatedItem = $('#breadCrumb-template-first').text(); //for the first item, the template is slightly differnt (no seperator) else relatedItem = $('#breadCrumb-template').text(); relatedItem = relatedItem.replace("@Text_rst", NewsItem.BreadCrumbs_rls[i].bcname_rst); relatedItem = relatedItem.exchange("@URL_RST", NewsItem.BreadCrumbs_rls[i].bcurl_rst); $("#lblBreadCrumbs").append(relatedItem); } //*** merge important content material into tempate onto web page $("#pageTitle").textual content(NewsItem.Name_rst); $("#h1_detail__header").textual content(NewsItem.Name_rst); $("#h2_detail__subtitle").textual content(NewsItem.Subtitle_rst); $("#div_detail__body").html(NewsItem.Body_rst); var date_lob = new Date(NewsItem.PublishDate_rdt); var date_lst = (date_lob.getMonth() + 1) + "/" + date_lob.getDate() + "/" + date_lob.getFullYear(); $("#div_detail__date").textual content(date_lst); $("#div_detail__positionOffice").textual content(NewsItem.Byline_rst); //$("#div_detail_time").textual content(NewsItem.Event_DateLine2_rst); //$("#div_detail__location").textual content(NewsItem.Location_Name_rst); //$("#div_detail__address").textual content(NewsItem.Location_Address_rst); // Let's ship the web page view to Google Analytics gtag('occasion', 'page_view', { page_title: NewsItem.Name_rst }) //***disguise the sidebar and different non-obligatory sections. if information is discovered for a given sidebar, .present() can be known as under. $("#mySideBarType1").disguise(); $("#mySideBarType2").disguise(); $("#mySideBarType3").disguise(); $("#mySideBarType4").disguise(); $("#mySideBarType5").disguise(); $("#divMedia").disguise(); //*** merge important picture into tempate onto web page var PageImage = NewsItem.Image_rob; if (PageImage !== null) { var imageString = "“; $(“#div_detail__image”).append(imageString); $(“#div_detail__caption”).textual content(PageImage.Description_rst); $(“#Head”).append(“”); }; //*** merge tags listing into tempate onto web page for (var i = 0; i < NewsItem.Tags_rls.size; i++) { var tagsItem = $('#tagsItem-template').textual content(); tagsItem = tagsItem.exchange("@title", NewsItem.Tags_rls[i].shortName_rst); tagsItem = tagsItem.exchange("@url", NewsItem.Tags_rls[i].url_rst); tagsItem = tagsItem.exchange("@textual content", NewsItem.Tags_rls[i].name_rst); $("#divTagsList").append(tagsItem); $("#Head").append(""); } //*** merge associated listing into tempate onto web page for (var i = 0; i < NewsItem.RelatedContent_rls.size; i++) { var relatedItem = $('#related-template').textual content(); relatedItem = relatedItem.exchange("@url", NewsItem.RelatedContent_rls[i].url_rst); relatedItem = relatedItem.exchange("@textual content", NewsItem.RelatedContent_rls[i].content_name_rst); $("#myRelatedContent_dlItems").append(relatedItem); } //*** merge associated media listing into tempate onto web page for (var i = 0; i < NewsItem.Media_rls.size; i++) { var relatedItem = $('#relatedMedia-template').textual content(); relatedItem = relatedItem.exchange("@Filename_rst", NewsItem.Media_rls[i].Filename_rst); relatedItem = relatedItem.exchange("@AlternateText_rst", NewsItem.Media_rls[i].AlternateText_rst); relatedItem = relatedItem.exchange("@Thumbnail_rst", NewsItem.Media_rls[i].Thumbnail_rst); relatedItem = relatedItem.exchange("@Title_rst", NewsItem.Media_rls[i].Title_rst); relatedItem = relatedItem.exchange("@Parent_url_rst", NewsItem.Media_rls[i].parent_url_rst); $("#ulMedia").append(relatedItem); } if (NewsItem.Media_rls.size == 0) { $("#divMedia").disguise(); } else { $("#divMedia").present(); } //*** program listing in important content material column for (var i = 0; i < NewsItem.Programs_rls.size; i++) { //OfficePrograms.Seen = True //CType(OfficePrograms, OfficeProgramsList).listProgram = _lPrograms } //*** workplace listing in important content material column for (var i = 0; i < NewsItem.Offices_rls.length; i++) { //OfficesList.Visible = True //CType(OfficesList, OfficesList).listOffices = _lOffices } //*** Attachements list in right content column for (var i = 0; i ]]]]]]>]]]]>]]>

    Source