Viewport meta tag not working across platforms

Im having non-stop issues with this problem. 1) If I zoom-in on a touch screen device then relaod the page it does not restore its original proportions. Ive found a way to resolve that issue on Android devices, with some degree of success, as describ...
more »

2017-03-18 23:03 (0) Answers

addEventListener not firing when animation ends

I am using animate.css to animate an element. I would like to run some javascript when the animation finishes. For some reason, the following does not work. myElement.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend ...
more »

2017-03-18 20:03 (1) Answers

not able to append row when i give <tbody> tag

I have a table which loads data dynamically through jQuery. My code works fine if I remove the <thead> and <tbody> tags. Though when I add these tags the code will not work; specifically the rows will not append. The rows are adding under...
more »

2017-03-18 05:03 (2) Answers

Using Jquery - not in html?

I'm making a chat bot for Twitch and I need to use the API to access some information. I'm not using any HTML tags and I load my bot up by starting it in my command line, I need to access some JSON data. I tried the npm install jQuery method but tha...
more »

2017-03-17 20:03 (0) Answers

Tag duplicate element for SEO

I am creating a sticky header. I've found the easiest way to pull this off is to clone my header using jQuery and modify its style appropriately in CSS. Is there any way to mark this cloned header as having duplicate content, so search crawlers can i...
more »

2017-03-16 14:03 (0) Answers

jquery screen with hide/show

I want to a div to be hidden it the screen size is bigger than 700px and shown only if the screen size is less than 700 px; Here is the code i'm trying to implement with using jQuery 3 jQuery(document).ready(function() { if ((screen.width>70...
more »

2017-03-16 12:03 (4) Answers

Simple Page Redirect Using URL

I want my index.php to redirect to my welcome/index.html. I know there are so many ways to do it but I want to shorten it just like Facebook does. I want a url based redirection. I want to redirect index.php to welcome/index.html by using url. For ...
more »

2017-03-16 10:03 (3) Answers

Scrolling fixed section

Exploring web, I found this amazing effect on this site (the scrolling effect) I want to build a script that recreates the same effect but I don't understand the logical behavior. Basically, I started to calculate the body h...
more »

2017-03-16 10:03 (2) Answers

CakePHP, jQuery - Add data attribute to anchor

I'm looking for a way to insert a data attribute to my table anchors in CakePHP. It automatically generates the following code, but I have no clue on how to alter this in a way where I make it a data-target attribute. The reason I want to achieve th...
more »

2017-03-16 09:03 (2) Answers

Blur all but one element in the body

I'm trying to blur everything on the screen except the loading animation. This is what I have tried. $("#addall").click(function() { $('#loading').show(); $('body:not(#loading)').css("filter", "blur(3px)"); }); <script src="https://aj...
more »

2017-03-16 08:03 (5) Answers

Input fields updates when mouse is over

I made an angular 2 model-driven form with nested fields. One of this fields is a numeric field and I am using a jquery plugin to make numeric formatted. I created a directive to init this plugin when a new line of input are added, but when I add a n...
more »

2017-03-15 21:03 (1) Answers

cannot bind dropdown with List in angular

Can't bind dropdown with List in AngularJS: <select> <option ng-repeat="x in list">{{x}}</option> </select> app.controller('myCtrl', function($scope) { $Scope.list=[{id:1, name='name 1'},{id:2, name='name 2'}]; }); ...
more »

2017-03-15 12:03 (4) Answers

How to load new events into FullCalender

I am using FullCalender 3.2. The problem is if I get the current events from calender and clear then add new ones to array. When I call $('#calendar').fullCalendar( 'updateEvents',eventsList); It does not work but throws error Uncaught TypeError...
more »

2017-03-15 09:03 (1) Answers