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 characters
| var template = | |
| 'html {' + | |
| '\tbackground: url({{ splash.background_image_name }}) no-repeat center center fixed;\n' + | |
| '\t-webkit-background-size: cover;\n' + | |
| '\t-moz-background-size: cover;\n' + | |
| '\t-o-background-size: cover;\n'+ | |
| '\tbackground-size: cover;\n'+ | |
| '\tbackground-color: {{splash.background_image_name ? \'transparent\' : splash.body_background_colour}}!important;\n'+ | |
| '}\n\n'+ |
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 characters
| <div ng-controller="LoginsController"> | |
| <div ng-show="loading == true" ng-cloak> | |
| <div ng-include="'components/layouts/loading.html'"></div> | |
| </div> | |
| <div ng-hide="loading"> | |
| <div class='container'> | |
| <div class='splash-container'> | |
| <div ng-hide="false" ng-cloak> | |
| <div class='row'> | |
| <div class='small-12 columns'> |
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 characters
| app.directive('formCode', ['$routeParams', '$location', 'Login', '$compile', '$localStorage', function($routeParams, $location, Login, $compile, $localStorage) { | |
| var link = function(scope,element,attrs) { | |
| scope.submit = function() { | |
| alert(scope.password); | |
| }; | |
| scope.letsShop = function() { | |
| var myObj = $location.search(); |
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 characters
| <div id='container-c1' ng-class="splash.design_id === 2 ? 'small-12 medium-6 columns' : 'skinny-c1'"> | |
| <h1>{{ splash.header_text }}</h1> | |
| <h2>{{ splash.info }}</h2> | |
| <p>{{ splash.address }}</p> | |
| <div class="social"> | |
| <a ng-show="splash.twitter_name" href="https://twitter.com/{{splash.twitter_name}}"><img src="https://d3e9l1phmgx8f2.cloudfront.net/images/social/twitter.svg" width='32px'></a> | |
| <a ng-show="splash.google_name" href="https://plus.google.com/{{splash.google_name}}/about"><img src="https://d3e9l1phmgx8f2.cloudfront.net/images/social/google.svg" width='32px'></a> | |
| <a ng-show="splash.facebook_name" href="http://facebook.com/{{splash.facebook_name}}"><img src="https://d3e9l1phmgx8f2.cloudfront.net/images/social/facebook.svg" width='32px'></a> | |
| <a ng-show="splash.pinterest_name" href="http://pinterest.com/{{splash.pinterest_name}}"><img src="https://d3e9l1phmgx8f2.cloudfront.net/images/social/pinterest.svg" width='32px'></a> | |
| <a ng-show="splash.instagram_name" href="http://instagram.c |
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 characters
| 'use strict'; | |
| var app = angular.module('ctLoginsApp.coova.services', ['ngResource']); | |
| app.factory('Coova', ['$resource', | |
| function($resource){ | |
| return $resource( 'http://:uamip::uamport' + '/json/status?', | |
| { callback: 'JSON_CALLBACK' }, |
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 characters
| app.directive('formCode', ['$routeParams', '$location', 'Login', '$compile', '$localStorage', 'Coova', function($routeParams, $location, Login, $compile, $localStorage, Coova) { | |
| var link = function(scope,element,attrs) { | |
| scope.submit = function() { | |
| // Do Stuff | |
| }; | |
| var checkStatus = function() { | |
| scope.coova = {}; |
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 characters
| { | |
| "location_id" : "2343279843255694423", | |
| "splash_id": 13, | |
| "username": "08187543-7846-41ad-81af-6f9f588ffdd9@2343279843255694423", | |
| "challengeResp": "52c644e564b7826ab0daa5fb34a45f3d" | |
| } |
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 characters
| 'use strict'; | |
| var app = angular.module('ctLoginsApp.tony.services', ['ngResource']); | |
| app.factory('Tony', ['$resource', 'API_END_POINT', | |
| function($resource, API_END_POINT){ | |
| return $resource(API_END_POINT + '/logins', | |
| {}, |
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 characters
| scope.submit = function() { | |
| Coova.status({uamip: $routeParams.uamip, uamport: $routeParams.uamport}).$promise.then(function(res) { | |
| scope.status = resp.status; | |
| if (scope.status === 0) { | |
| var challenge = resp.challenge; | |
| doLogin(scope.username, scope.password, challenge); | |
| } else { | |
| // fail login, user online // | |
| } |
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 characters
| { | |
| "version": "1.0", | |
| "clientState": 0, | |
| "challenge": "4ce71fa9eb8cd48e00f29c00a83ebede", | |
| "location": { | |
| "name": "S*** Got Real" | |
| }, | |
| "redir": { | |
| "originalURL": "http://www.bbc.co.uk/", | |
| "redirectionURL": "", |