Questions tagged as 'javascript'

2
answers

Lock PrintScreen function

I know the question is controversial, but I want to know if it really blocks the print screen function altogether. In Windows Forms you have to delete the clipboard with the clipboard.clear, but already in JavaScript this is not allowed for se...
asked by 05.11.2014 / 18:09
1
answer

Adds Html5 Player automatically

I'm looking for a way to add the Html5 player to the pages on my site. I own videos in mp4, which are embedded. I would like to convert these videos into Html5 by applying a new player on the page. Example: <embed src="http://meu...
asked by 28.12.2014 / 19:47
1
answer

Capture value of an email type field in angular js

I have the following HTML code with AngularJS: <html ng-app> //... <form name="myForm2"> <input type="email" id="email" name="email" ng-model="formData.email" required/> <span ng-show="!myForm2.ema...
asked by 18.09.2014 / 17:15
2
answers

Choose color in input type="submit" ...

How could I set a color for input . Below I have one of the input I use. <input type="submit" id="Submit69" class="btn btn-default btn-block" value="REP+H4" title="Clique Selecionar as Soluções" /> The value of the text I...
asked by 17.09.2014 / 16:51
2
answers

custom filter with AngularJS

Personally, I have the following problem, I have a list of names: $scope.names=["Max", "Tom", "Ralf", "Jerry", "Snow", "Carl"]; I made a normal filter for the input search <ul> <li ng-repeat="name in names | filter: search">...
asked by 18.09.2014 / 20:25
1
answer

"Quadrant", analyze area around the square

I have a project and I got into a problem. The project would be a simple simcity 1 done in pure javascript. The problem is that when making crosses and curves I can not detect the next square on my grid. To learn how to solve the problem I wante...
asked by 11.08.2014 / 01:37
1
answer

Enable / Disable angular buttons with values from api

I have my following screen: The side menu comes from an api List with user permissions I have my classes: public class Menu { public int Id {get;set;} public string Nome {get;set;} } public class Item { public int Id {get;s...
asked by 08.08.2014 / 16:32
1
answer

Google Maps API - window always opens last

Speak, all right? I'm working on Google maps, grabbing the clients in my bank and putting the Markers on the map according to their latitude and longitude, when clicking the marker opens a window displaying information, so far so good, my proble...
asked by 08.08.2014 / 21:31
1
answer

form $ setPristine () does not work + AngularJs

I'm trying to do a cleanup on a form, used $ setPristine () from angularJs ... When attempting to clean a form with: $scope.reset = function(){ $scope.form.$setPristine(); $scope.perfilDeAcesso = ''; }; It works normally but I'm...
asked by 31.07.2014 / 06:06
1
answer

Handlebars compile function with parameter parameters

I want to minify my template during the compile period of it in NodeJS Searching on I found that handlebars.compile(templateLoaded); has more options besides the template parameter. I would like to know how to pass the minify parameter...
asked by 22.07.2014 / 05:15