| 1 |
'use strict'; |
| 2 |
var app_c=angular.module('appControllers', ); |
| 3 |
app_c.controller('generalController', '$scope', '$http', function($scope, $http){ |
| 4 |
}); |
| 5 |
app_c.controller('mapController', '$scope', '$http', function($scope, $http){ |
| 6 |
$scope.geoObjects = |
| 7 |
{ |
| 8 |
geometry: { |
| 9 |
type: "Point", |
| 10 |
coordinates: 37.60913, 55.7301 |
| 11 |
}, |
| 12 |
name: "Если железная дверь закрыта, постучитесь в окно.", |
| 13 |
style: "twirl#lightblueDotIcon", |
| 14 |
number: "" |
| 15 |
}, { |
| 16 |
geometry: { |
| 17 |
type: "Point", |
| 18 |
coordinates: 37.610210000000002, 55.72983 |
| 19 |
}, |
| 20 |
name: "На проходной скажите, что вам в фаблаб. Далее прямо, по лестнице вниз, налево, прямо.", |
| 21 |
style: "twirl#lightblueDotIcon", |
| 22 |
number: "" |
| 23 |
}, { |
| 24 |
geometry: { |
| 25 |
type: "Point", |
| 26 |
coordinates: 37.611319999999999, 55.729509999999998 |
| 27 |
}, |
| 28 |
name: "Выход из метро Октябрьская кольцевая. Поднимаетесь на эскалаторе, потом налево.", |
| 29 |
style: "twirl#lightblueDotIcon", |
| 30 |
number: "" |
| 31 |
}, { |
| 32 |
geometry: { |
| 33 |
type: "LineString", |
| 34 |
"coordinates": |
| 35 |
37.61036, 55.72995, |
| 36 |
37.61009, 55.7297, |
| 37 |
37.60986, 55.72976, |
| 38 |
37.60997, 55.72987, |
| 39 |
37.60944, 55.73003 |
| 40 |
}, |
| 41 |
name: "", |
| 42 |
style: "#id1420459705804721988" |
| 43 |
}, { |
| 44 |
geometry: { |
| 45 |
type: "LineString", |
| 46 |
"coordinates": |
| 47 |
37.61132, 55.72951, |
| 48 |
37.61068, 55.7295, |
| 49 |
37.61034, 55.7296, |
| 50 |
37.61049, 55.72979, |
| 51 |
37.61037, 55.72995, |
| 52 |
37.60999, 55.73006, |
| 53 |
37.60926, 55.73029, |
| 54 |
37.60905, 55.73012, |
| 55 |
37.60913, 55.7301 |
| 56 |
}, |
| 57 |
name: "", |
| 58 |
style: "#id1420459627007873956" |
| 59 |
}, { |
| 60 |
geometry: { |
| 61 |
type: "Polygon", |
| 62 |
coordinates: |
| 63 |
37.60897, 55.72995, |
| 64 |
37.6092, 55.73017, |
| 65 |
37.60949, 55.73007, |
| 66 |
37.60939, 55.72998, |
| 67 |
37.60924, 55.73003, |
| 68 |
37.60911, 55.72992, |
| 69 |
37.60897, 55.72995 |
| 70 |
}, |
| 71 |
name: "", |
| 72 |
style: "#id1420459431583562165" |
| 73 |
} |
| 74 |
}); |
| 75 |
'use strict'; |
| 76 |
var app_d = angular.module('scriptsDirectives', ); |
| 77 |
app_d.directive('fotorama', function($window){ |
| 78 |
return function(scope, element, attrs){ |
| 79 |
element.fotorama(); |
| 80 |
}; |
| 81 |
}); |
| 82 |
app_d.directive('analytics', function($window){ |
| 83 |
return function(scope, element, attrs){ |
| 84 |
(function(i,s,o,g,r,a,m){i'GoogleAnalyticsObject'=r;ir=irfunction(){ |
| 85 |
(ir.q=ir.q).push(arguments)},ir.l=1*new Date();a=s.createElement(o), |
| 86 |
m=s.getElementsByTagName(o)0;a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 87 |
})(window,document,'script','www.google-analytics.comanalytics.js','ga'); |
| 88 |
ga('create', 'UA-34687389-2', 'auto'); |
| 89 |
ga('send', 'pageview'); |
| 90 |
(function (d, w, c) { |
| 91 |
(wc = wc ).push(function() { |
| 92 |
try { |
| 93 |
w.yaCounter = new Ya.Metrika({id:, |
| 94 |
clickmap:true, |
| 95 |
trackLinks:true, |
| 96 |
accurateTrackBounce:true}); |
| 97 |
} catch(e) { } |
| 98 |
}); |
| 99 |
var n = d.getElementsByTagName("script")0, |
| 100 |
s = d.createElement("script"), |
| 101 |
f = function () { n.parentNode.insertBefore(s, n); }; |
| 102 |
s.type = "textjavascript"; |
| 103 |
s.async = true; |
| 104 |
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "mc.yandex.rumetrikawatch.js"; |
| 105 |
if (w.opera == "object Opera") { |
| 106 |
d.addEventListener("DOMContentLoaded", f, false); |
| 107 |
} else { f(); } |
| 108 |
})(document, window, "yandex_metrika_callbacks"); |
| 109 |
}; |
| 110 |
}); |
| 111 |
app_d.directive('socialLikes', function($window){ |
| 112 |
return function(scope, element, attrs){ |
| 113 |
element.socialLikes(); |
| 114 |
}; |
| 115 |
}); |
| 116 |
app_d.directive('body', function($window){ |
| 117 |
return function(scope, element, attrs){ |
| 118 |
console.log('test'); |
| 119 |
console.log( $(location).attr('href') ); |
| 120 |
}; |
| 121 |
}); |
Комментарии