{"size": 2547, "ext": "js", "max_stars_repo_path": "public_html/js/src.js", "max_stars_repo_name": "christianbirg/job-application-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public_html/js/src.js", "max_issues_repo_name": "christianbirg/job-application-website", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public_html/js/src.js", "max_forks_repo_name": "christianbirg/job-application-website", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 2547.0, "max_line_length": 2547, "alphanum_fraction": 0.7283078131}
"use strict";var app=angular.module("application",["ngRoute","ngSanitize","xeditable"]);app.run(["$rootScope","editableOptions","editableThemes",function(a,b,c){b.theme="bs3",c.bs3.inputClass="form-control",a.editmode=!1,a.switchMode=function(){$("#loading-overlay").fadeIn(500),setTimeout(function(){a.editmode===!1?$("body").removeClass("editmode-enabled"):$("body").addClass("editmode-enabled"),$("#loading-overlay").fadeOut()},1e3)}}]),app.config(["$routeProvider","$locationProvider",function(a,b){a.when("/",{templateUrl:"views/index.html",controller:"IndexController"}).when("/application",{templateUrl:"views/application.html",controller:"ApplicationController"}).when("/curriculum-vitae",{templateUrl:"views/curriculum-vitae.html",controller:"CurriculumController"}).when("/skill-page",{templateUrl:"views/skill-page.html",controller:"SkillPageController"}).otherwise("/"),b.html5Mode(!0).hashPrefix("!")}]),app.factory("DataService",["$timeout","$q","$http",function(a,b,c){return{fetch:function(){var d=b.defer();return a(function(){c.get("assets/application.json").success(function(a){d.resolve(a)})},30),d.promise}}}]),app.directive("ratingBar",function(){return{restrict:"E",link:function(a,b,c){a.$watch(function(){var a=+c.range,d=5,e=document.createElement("ul");e.className="com-ratingbar";for(var f=0;d>f;f++){var g=document.createElement("li");g.html=f,g.className=f==a-.5?"half":a>f?"filled":"empty",e.appendChild(g)}$(b).html(e)})}}}),app.directive("timeline",function(){return{restrict:"E",templateUrl:"views/_partials/timeline.html"}}),app.directive("tooltip",function(){return{restrict:"A",link:function(a,b){a.$watch(function(){var a=$(b);a.tooltip()})}}}),app.controller("IndexController",["$injector","$scope","$rootScope","DataService",function(a,b,c,d){d.fetch().then(function(a){b.application=a.application,b.index=a.index,b.company=a.company,b.social=a.social,b.person=a.person})}]),app.controller("CurriculumController",["$injector","$scope","$rootScope","DataService",function(a,b,c,d){d.fetch().then(function(a){b.curriculum=a.curriculumVitae,b.social=a.social,b.person=a.person})}]),app.controller("ApplicationController",["$injector","$scope","$rootScope","DataService",function(a,b,c,d){d.fetch().then(function(a){b.application=a.application,b.date=new Date,b.company=a.company,b.social=a.social,b.person=a.person})}]),app.controller("SkillPageController",["$injector","$scope","$rootScope","DataService",function(a,b,c,d){d.fetch().then(function(a){b.skills=a.skills,b.social=a.social,b.person=a.person})}]);