Created
September 18, 2019 16:12
-
-
Save bluenex/e67a544e99fc9f52a277996a6839d5d6 to your computer and use it in GitHub Desktop.
Revisions
-
bluenex created this gist
Sep 18, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,121 @@ ### MINS event URL ``` http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/ ``` ### Event slug ``` mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture ``` ### Content ajax request URL ``` http://go.activecalendar.com/handlers/query.ashx?tenant=UPennMINS&site=&get=eventdetails&route={event_slug}&view=detail.xslt ``` ### Response from ajax request ```json jQuery19105534898770435832_1568822154426({"html":"\u003csection id=\"event-details-main-content\" itemscope=\"\" itemtype=\"http://schema.org/Event\"\u003e\u003ch2 itemprop=\"name\" style=\"float: left;\"\u003eMahoney Institute for Neurosciences Seminar - 47th Annual Flexner Lecture\u003c/h2\u003e\u003cdiv class=\"back-to-events-container\"\u003e\u003ca href=\"javascript:window.history.back()\" id=\"back-to-events\" aria-label=\"Back to Events\"\u003e Back to Events\u003c/a\u003e\u003c/div\u003e\u003csection class=\"event-detail-when-where clearfix\"\u003e\u003csection class=\"event-detail-date\"\u003e\u003cp\u003eWednesday, November 13, 2019\u003ctime itemprop=\"startDate\" datetime=\"2019-11-13T16:00\"\u003e \u003c/time\u003e\u003cbr /\u003e4:00 PM\r\n - 5:00 PM\u003ctime itemprop=\"endDate\" datetime=\"2019-11-13T17:00\"\u003e \u003c/time\u003e \r\n (ET)\r\n \u003c/p\u003e\u003c/section\u003e\u003csection class=\"list-event-locale\" itemprop=\"location\" itemscope=\"\" itemtype=\"http://schema.org/Place\"\u003e\u003cp\u003e\u003ca itemprop=\"url\" href=\"/UPennMINS/location/17573604-7525-4ED9-97D6-E3CD70D5D870/\"\u003e\u003cspan itemprop=\"name\"\u003eBRB II/III\u003c/span\u003e\u003c/a\u003e\u003cbr /\u003e\u003cspan itemprop=\"address\" itemscope=\"\" itemtype=\"http://schema.org/PostalAddress\"\u003e\u003cspan itemprop=\"streetAddress\"\u003e421 Curie Boulevard\u003c/span\u003e\u003cbr /\u003e\u003cspan itemprop=\"addressLocality\"\u003ePhiladelphia\u003c/span\u003e \u003cspan itemprop=\"addressRegion\"\u003ePA\u003c/span\u003e \u003cspan itemprop=\"postalCode\"\u003e19104\u003c/span\u003e \u003c/span\u003e\u003cbr /\u003e\u003c/p\u003e\u003c/section\u003e\u003csection class=\"event-detail-contact-person\"\u003e\u003cp\u003e\u003ca href=\"mailto:[email protected]\"\[email protected]\u003c/a\u003e \u003c/p\u003e\u003c/section\u003e\u003c/section\u003e\u003csection id=\"event-detail-copy\" style=\"height:100%\" class=\"clearfix\"\u003e\u003cdiv itemprop=\"description\"\u003e\"Year of Brain Science Technology\"\r\nHost: Maria Geffen \u003c/div\u003e\u003cdiv id=\"event-colors\" class=\"clearfix\"\u003e \u003c/div\u003e\u003cdiv id=\"event-favorite-container\"\u003e\u003ca id=\"event-favorite\" href=\"javascript:void(0);\" onclick=\"CommitEventFavorite(\u00278EE36130-23FA-4A6B-9AAE-0779DF7F63AA\u0027)\"\u003e\u003cspan class=\"icon-heart-empty\"\u003e\u003c/span\u003eAdd to Favorites\u003c/a\u003e\u003c/div\u003e\u003cscript type=\"text/javascript\"\u003e\r\n function CommitEventFavorite(guid)\r\n {\r\n //Create a parameters object needed for the request\r\n var lParams = { \"tenant\": \"\", \"site\": \"\" };\r\n lParams[\"tenant\"] = ActiveData.Variables.tenant.route;\r\n lParams[\"site\"] = ActiveData.Variables.site.route;\r\n lParams[\"get\"] = \"favorite\";\r\n lParams[\"guid\"] = guid;\r\n\r\n //Create the URL that will make the call\r\n var lUrl = ActiveData.Variables.runtime.baseUrl + \"/handlers/query.ashx?\" + $.param(lParams)\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: lUrl,\r\n dataType: \"jsonp\",\r\n async: true, cache: false,\r\n success: function(response) {\r\n $(top.location).attr(\u0027href\u0027, response.data);\r\n }\r\n });\r\n }\r\n\r\n \u003c/script\u003e\u003c/section\u003e\u003csection id=\"accordion-container\"\u003e\u003ca href=\"javascript:void(0)\" class=\"accordion-header-link\" id=\"share-it-accordion-expand\" aria-label=\"Share This Event\" aria-expanded=\"false\" aria-controls=\"share-event-data\"\u003e\u003ch3 id=\"share-it-accordion\" class=\"accordion-header inactive-header\"\u003e\u003ci class=\"fa fa-share-square\" /\u003e\u003cspan\u003eShare This Event\u003c/span\u003e\u003c/h3\u003e\u003c/a\u003e\u003csection class=\"share-it-accordion-content clearfix\" id=\"share-event-data\"\u003e\u003cdiv id=\"share-it-social\"\u003e\u003ch4\u003eSocial\u003c/h4\u003e\u003ca id=\"social-share-facebook-event\" aria-label=\"Share on Facebook, link opens in a new window\" target=\"_blank\" href=\"http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareFacebook\u0026amp;event=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\u0026amp;shareurl=http%3A%2F%2Fwww.facebook.com%2Fsharer.php%3Fu%3D\u0026amp;eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA\u0026amp;tenant=UPennMINS\u0026amp;site=\"\u003e\u003cimg alt=\"Share It Facebook\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/facebook.png\" /\u003e\u003c/a\u003e\u003ca id=\"social-share-twitter-event\" aria-label=\"Share on Twitter, link opens in a new window\" target=\"_blank\" href=\"http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareTwitter\u0026amp;event=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\u0026amp;shareurl=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Furl%3D\u0026amp;eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA\u0026amp;tenant=UPennMINS\u0026amp;site=\"\u003e\u003cimg alt=\"Share It Twitter\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/twitter.png\" /\u003e\u003c/a\u003e\u003ca id=\"social-share-google-event\" aria-label=\"Share on Google+, link opens in a new window\" target=\"_blank\" href=\"http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareGoogleplus\u0026amp;event=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\u0026amp;shareurl=https%3A%2F%2Fplus.google.com%2Fshare%3Furl%3D\u0026amp;eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA\u0026amp;tenant=UPennMINS\u0026amp;site=\"\u003e\u003cimg alt=\"Share It Google+\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/google_plus.png\" /\u003e\u003c/a\u003e\u003ca id=\"social-share-linkedin-event\" aria-label=\"Share on LinkedIn, link opens in a new window\" target=\"_blank\" href=\"http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareLinkedin\u0026amp;event=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\u0026amp;shareurl=http%3A%2F%2Fwww.linkedin.com%2FshareArticle%3Fmini%3Dtrue%26url%3D\u0026amp;eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA\u0026amp;tenant=UPennMINS\u0026amp;site=\"\u003e\u003cimg alt=\"Share It LinkedIn\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/linkedin.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003cdiv id=\"share-it-blog\"\u003e\u003ch4\u003eBlog\u003c/h4\u003e\u003ca id=\"share-wordpress\" target=\"_blank\" href=\"http://api.addthis.com/oexchange/0.8/forward/wordpress/offer?url=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\" aria-label=\"Send to WordPress, link opens in a new window\"\u003e\u003cimg alt=\"Share It Wordpress\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/wordpress.png\" /\u003e\u003c/a\u003e\u003ca id=\"share-blogger\" target=\"_blank\" href=\"https://www.addthis.com/bookmark.php?s=blogger\u0026amp;url=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\" aria-label=\"Send to Blogger, link opens in a new window\"\u003e\u003cimg alt=\"Share It Blogger\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/blogger.png\" /\u003e\u003c/a\u003e\u003ca id=\"share-tumblr\" target=\"_blank\" href=\"https://www.addthis.com/bookmark.php?s=tumblr\u0026amp;url=http%3a%2f%2fgo.activecalendar.com%2fUPennMINS%2fevent%2fmahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture%2f\u0026amp;title=Mahoney Institute for Neurosciences Seminar - 47th Annual Flexner Lecture\" aria-label=\"Send to Tumblr, link opens in a new window\"\u003e\u003cimg alt=\"Share It Tumblr\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/tumblr.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003cdiv id=\"share-it-calendar\"\u003e\u003ch4\u003eCalendar\u003c/h4\u003e\u003ca id=\"share-calendar\" href=\"/UPennMINS/page/ical/?event=mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture\" aria-label=\"Add to Calendar\"\u003e\u003cimg alt=\"Add to Calendar\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/outlook.png\" /\u003e\u003c/a\u003e\u003ca id=\"share-google-calendar\" class=\"adx-share-sendeventtogoogle\" data-sharetype=\"ical\" data-analytics=\"SendtoGoogle\" aria-label=\"Add to Google Calendar, link opens in a new window\" target=\"_blank\"\u003e\u003cimg alt=\"Add to Google Calendar\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/google.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003cdiv id=\"share-it-email\"\u003e\u003ch4\u003eEmail\u003c/h4\u003e\u003ca id=\"share-email\" class=\"gadget-link\" aria-label=\"Email\" data-gadgetaction=\"Email\" data-gadgetsite=\"\" data-gadgetevent=\"mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture\"\u003e\u003cimg alt=\"Email\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/email.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003cdiv id=\"share-it-remind\"\u003e\u003ch4\u003eRemind\u003c/h4\u003e\u003ca id=\"share-remind\" class=\"gadget-link\" aria-label=\"Remind\" data-gadgetaction=\"RemindMe\" data-gadgetsite=\"\" data-gadgetevent=\"mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture\"\u003e\u003cimg alt=\"Remind\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/share-icons/remind.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003cdiv id=\"share-it-alert\"\u003e\u003ch4\u003eAlert\u003c/h4\u003e\u003ca id=\"share-alert\" class=\"gadget-link\" aria-label=\"Alert\" data-gadgetaction=\"Alert\" data-gadgetsite=\"\" data-gadgetevent=\"mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture\"\u003e\u003cimg alt=\"Alert\" src=\"/Layouts/Community/Default%20Site/Active%20Data%20Default/images/notifications_icon.png\" /\u003e\u003c/a\u003e\u003c/div\u003e\u003c/section\u003e \u003c/section\u003e\u003c/section\u003e\u003cscript type=\"text/javascript\"\u003e\r\n setAccordionContrast();\r\n \u003c/script\u003e"}) ``` ### Beautified response HTML ```html <section id="event-details-main-content" itemscope="" itemtype="http://schema.org/Event"> <h2 itemprop="name" style="float: left;">Mahoney Institute for Neurosciences Seminar - 47th Annual Flexner Lecture</h2> <div class="back-to-events-container"><a href="javascript:window.history.back()" id="back-to-events" aria-label="Back to Events"> Back to Events</a></div> <section class="event-detail-when-where clearfix"> <section class="event-detail-date"> <p>Wednesday, November 13, 2019 <time itemprop="startDate" datetime="2019-11-13T16:00"> </time> <br />4:00 PM - 5:00 PM <time itemprop="endDate" datetime="2019-11-13T17:00"> </time> (ET) </p> </section> <section class="list-event-locale" itemprop="location" itemscope="" itemtype="http://schema.org/Place"> <p><a itemprop="url" href="/UPennMINS/location/17573604-7525-4ED9-97D6-E3CD70D5D870/"><span itemprop="name">BRB II/III</span></a> <br /><span itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress"><span itemprop="streetAddress">421 Curie Boulevard</span> <br /><span itemprop="addressLocality">Philadelphia</span> <span itemprop="addressRegion">PA</span> <span itemprop="postalCode">19104</span> </span> <br /> </p> </section> <section class="event-detail-contact-person"> <p><a href="mailto:[email protected]">[email protected]</a> </p> </section> </section> <section id="event-detail-copy" style="height:100%" class="clearfix"> <div itemprop="description">"Year of Brain Science Technology" Host: Maria Geffen </div> <div id="event-colors" class="clearfix"> </div> <div id="event-favorite-container"><a id="event-favorite" href="javascript:void(0);" onclick="CommitEventFavorite('8EE36130-23FA-4A6B-9AAE-0779DF7F63AA')"><span class="icon-heart-empty"></span>Add to Favorites</a></div> <script type="text/javascript"> function CommitEventFavorite(guid) { //Create a parameters object needed for the request var lParams = { "tenant": "", "site": "" }; lParams["tenant"] = ActiveData.Variables.tenant.route; lParams["site"] = ActiveData.Variables.site.route; lParams["get"] = "favorite"; lParams["guid"] = guid; //Create the URL that will make the call var lUrl = ActiveData.Variables.runtime.baseUrl + "/handlers/query.ashx?" + $.param(lParams) $.ajax({ type: "POST", url: lUrl, dataType: "jsonp", async: true, cache: false, success: function(response) { $(top.location).attr('href', response.data); } }); } </script> </section> <section id="accordion-container"><a href="javascript:void(0)" class="accordion-header-link" id="share-it-accordion-expand" aria-label="Share This Event" aria-expanded="false" aria-controls="share-event-data"><h3 id="share-it-accordion" class="accordion-header inactive-header"><i class="fa fa-share-square" /><span>Share This Event</span></h3></a> <section class="share-it-accordion-content clearfix" id="share-event-data"> <div id="share-it-social"> <h4>Social</h4> <a id="social-share-facebook-event" aria-label="Share on Facebook, link opens in a new window" target="_blank" href="http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareFacebook&event=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/&shareurl=http://www.facebook.com/sharer.php?u=&eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA&tenant=UPennMINS&site="><img alt="Share It Facebook" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/facebook.png" /></a> <a id="social-share-twitter-event" aria-label="Share on Twitter, link opens in a new window" target="_blank" href="http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareTwitter&event=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/&shareurl=https://twitter.com/intent/tweet?url=&eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA&tenant=UPennMINS&site="><img alt="Share It Twitter" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/twitter.png" /></a> <a id="social-share-google-event" aria-label="Share on Google+, link opens in a new window" target="_blank" href="http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareGoogleplus&event=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/&shareurl=https://plus.google.com/share?url=&eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA&tenant=UPennMINS&site="><img alt="Share It Google+" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/google_plus.png" /></a> <a id="social-share-linkedin-event" aria-label="Share on LinkedIn, link opens in a new window" target="_blank" href="http://go.activecalendar.com/handlers/share.ashx?analiticstype=ShareLinkedin&event=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/&shareurl=http://www.linkedin.com/shareArticle?mini=true&url=&eventguid=8EE36130-23FA-4A6B-9AAE-0779DF7F63AA&tenant=UPennMINS&site="><img alt="Share It LinkedIn" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/linkedin.png" /></a> </div> <div id="share-it-blog"> <h4>Blog</h4> <a id="share-wordpress" target="_blank" href="http://api.addthis.com/oexchange/0.8/forward/wordpress/offer?url=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/" aria-label="Send to WordPress, link opens in a new window"><img alt="Share It Wordpress" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/wordpress.png" /></a> <a id="share-blogger" target="_blank" href="https://www.addthis.com/bookmark.php?s=blogger&url=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/" aria-label="Send to Blogger, link opens in a new window"><img alt="Share It Blogger" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/blogger.png" /></a> <a id="share-tumblr" target="_blank" href="https://www.addthis.com/bookmark.php?s=tumblr&url=http://go.activecalendar.com/UPennMINS/event/mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture/&title=Mahoney Institute for Neurosciences Seminar - 47th Annual Flexner Lecture" aria-label="Send to Tumblr, link opens in a new window"><img alt="Share It Tumblr" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/tumblr.png" /></a> </div> <div id="share-it-calendar"> <h4>Calendar</h4> <a id="share-calendar" href="/UPennMINS/page/ical/?event=mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture" aria-label="Add to Calendar"><img alt="Add to Calendar" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/outlook.png" /></a> <a id="share-google-calendar" class="adx-share-sendeventtogoogle" data-sharetype="ical" data-analytics="SendtoGoogle" aria-label="Add to Google Calendar, link opens in a new window" target="_blank"><img alt="Add to Google Calendar" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/google.png" /></a> </div> <div id="share-it-email"> <h4>Email</h4> <a id="share-email" class="gadget-link" aria-label="Email" data-gadgetaction="Email" data-gadgetsite="" data-gadgetevent="mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture"><img alt="Email" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/email.png" /></a> </div> <div id="share-it-remind"> <h4>Remind</h4> <a id="share-remind" class="gadget-link" aria-label="Remind" data-gadgetaction="RemindMe" data-gadgetsite="" data-gadgetevent="mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture"><img alt="Remind" src="/Layouts/Community/Default Site/Active Data Default/images/share-icons/remind.png" /></a> </div> <div id="share-it-alert"> <h4>Alert</h4> <a id="share-alert" class="gadget-link" aria-label="Alert" data-gadgetaction="Alert" data-gadgetsite="" data-gadgetevent="mahoney-institute-for-neurosciences-seminar---47th-annual-flexner-lecture"><img alt="Alert" src="/Layouts/Community/Default Site/Active Data Default/images/notifications_icon.png" /></a> </div> </section> </section> </section> <script type="text/javascript"> setAccordionContrast(); </script>" ```