var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var app = angular.module("cms", []); app.directive("cmsCheckForLogin", ["app", function(app){ var d = {}; d.transclude = true; d.template = "
"; d.link = function(scope, elem, attrs){ console.log("inside cmsCheckForLogin directive..", Math.random()); var url = app.baseUrl + "/login/status"; var xhr = new XMLHttpRequest(); xhr.open("GET", url, false); xhr.send(); var status = JSON.parse(xhr.responseText).success; if(status==false){ var link = $("").attr("href", "/login").html("Login"); elem.html(link) .prepend("You must be logged in to view this content. ") } }; return d; }]); app.service("app", ["$http", function($http){ var app = {}; app.baseUrl = "https://web.archive.org/web/20170526003805/http://radicalceo.net"; return app; }]); function ajaxLoading(){ var overlay = "