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
| angular.module("myApp").factory("await", [ | |
| function() { | |
| this.awaits = {}; | |
| this.await = function (what, fn) { | |
| this.awaits[what] = fn; | |
| return this; | |
| }; | |
| this.fire = function (what, data) { | |
| if (this.awaits.hasOwnProperty(what)) { | |
| this.awaits[what].apply(this,[data]); |
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
| angular.module("auctionApp").directive("symSuggestions", function ($compile) { | |
| return { | |
| restrict: 'E', | |
| scope: { | |
| options: '=options', | |
| select: '&onSelect', | |
| trigger: '=trigger', | |
| // transclude: true |
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
| <ul class="sym-suggestions"> | |
| <li ng-repeat="option in options"> | |
| <span ng-click="select({item:option})" > | |
| {{option.Name}} | |
| </span> | |
| </li> | |
| </ul> | |
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
| <input type="text" ng-keyup="find($event)" id="auto" class="form-control"/> | |
| <sym-suggestions options="results" | |
| on-select="selectedItem(item)" trigger="auto"> | |
| </sym-suggestions> |
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 class="input-group-btn"> | |
| <ul class="dropdown-menu"> | |
| <li ng-repeat="option in options"> | |
| <a ng-click="select({item:option})" | |
| ng-class="{'current': $index === currentIndex }"> | |
| {{option.Name}} | |
| </a> | |
| </li> | |
| </ul> |
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
| return { | |
| restrict: 'E', | |
| scope: { | |
| options: '=options', // arr med data? | |
| // [{label: '' , value: 0 },... ] | |
| select: '&onSelect', | |
| trigger: '=trigger', | |
| labelField: '=labelField', // label |
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 myParams = { | |
| foo: "bar", | |
| categoryId :1001 | |
| }; | |
| xsocketsControllerProvider.open("ws://" + location.host, myParams); | |
| ... |
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
| verticles = [ | |
| new Noc.Point3D(-1, -1, -1), // 0 | |
| new Noc.Point3D(1, -1, -1), // 1 | |
| new Noc.Point3D(1, 1, -1), // 2 | |
| new Noc.Point3D(-1, 1, -1), // 3 | |
| new Noc.Point3D(1, -1, 1, 0), // 5 | |
| new Noc.Point3D(1, 1, 1), // 6 | |
| new Noc.Point3D(-1, 1, 1), // 7 | |
| ]; | |
| var faces = [ |
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 AudioTrackSpeechLog = (function () { | |
| "use strict"; | |
| var ctor = function (track, completed, interim, lang) { | |
| var self = this; | |
| this.recognizing = false; | |
| this.finalTranscript = ""; | |
| if (('webkitSpeechRecognition' in window)) { | |
| this.recognition = new webkitSpeechRecognition(); | |
| this.recognition.continuous = true; | |
| this.recognition.interimResults = true; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script src="js/XSockets.latest.js"></script> | |
| <script src="js/XSockets.WebRTC.latest.js"></script> |