Skip to main content

All Questions

Tagged with
1 vote
0 answers
110 views

Lowering CPU consumption of animated particles inside the canvas

I'm using this library zepto.min.js to add some particles over a canvas. Here is the result on Codepen: https://codepen.io/pixy-dixy/pen/JjGXQOo?editors=1111 I wonder if there is an option to: ...
foxer's user avatar
  • 881
1 vote
1 answer
2k views

Creating a Sudoku Grid (Javascript and HTML), won't allow input to cells

So I've got my program running, where it creates a sudoku grid, and has a single-row table beneath it, to allow number input. But, when I click on a number at the bottom and click a cell so that the ...
Nick Hofmann's user avatar
1 vote
1 answer
2k views

Element disappears when clicked

I'm using App.js (Javascript UI library) and Zepto.js (JQuery-like library) to make a mobile application. The code below is not from my application, but demonstrates the exact problem I am having. I ...
Tuomas Koivisto's user avatar
0 votes
1 answer
112 views

swipeUp or swipeDown is not valid in google chrome which emulates mobile platform

as the title description,i write html codes which applies on mobile platform,then i test codes through google chrome which can emulate mobile phone to access the web pages.the codes as follows. <...
heizhishi's user avatar
0 votes
1 answer
282 views

Zepto JS : CSS doesn't apply to basic HTML template

I attempting to load some HTML via a Zepto JS ajax call : // inside $(docuement).ready... $.get('dist/traffic-lights.html', function(response) { $(document.head).append(response); // in the page ...
Hefeust CORTES's user avatar
0 votes
3 answers
2k views

How to get the float value of a div [duplicate]

I need to know if there is a method or something, that will give me the value of the CSS tag float. I am working on a system that requires Arabic language meaning it needs to be RTL ( Right-To-Left ) ...
Thedtxy's user avatar
  • 13
2 votes
6 answers
213 views

loop until meet a class then do something

http://jsfiddle.net/ytytb5hu/ How can I make all the the p up to class="here" the color of red using a loop? <p>1</p> <p>2</p> <p>3</p> <p class="here">4<...
Aaron Musktin's user avatar
1 vote
1 answer
1k views

Can't override CSS rule

In my CSS, I have an element with the id of #home: body >#home, body[orient="portrait"] > #home{ top:87px !important; background: white!important; } When I then close a popup-window a ...
user2722667's user avatar
  • 8,575
0 votes
0 answers
28 views

Should we remove dom out of the view from dom tree when scroll on mobile device?

When our page run on mobile device ,is it a good idea to remove dom from dom tree which out of the view when scroll out and resume them when scroll in ? I make a zepto plugin to do this job: ...
Csonlai Cson lai's user avatar
-1 votes
2 answers
2k views

Fade Out 1 Div After 5 Secs and Fade in Another [closed]

I'm trying to fade out #one and then fade in #two after 5 seconds. I'm trying to keep the file as small as possible so would rather not use a library as heavy as jquery since this will only be ...
Joe Bobby's user avatar
  • 2,811
0 votes
2 answers
2k views

css tabs don't scroll in page's top

I've got this issue that i can't resolve myself. I've got css tabs like in this site: http://www.sitepoint.com/css3-tabs-using-target-selector/ but i've got a fixed menu in the top of the page. So, ...
BlackShawarna's user avatar
0 votes
0 answers
126 views

How do I determine the element that fires Ajax request for all modern browsers?

I'm trying to get the element that fires the ajax request. This is what I get form zepto document By default, Ajax events are fired on the document object. However, if the context of a request is ...
toy's user avatar
  • 12.1k
0 votes
1 answer
229 views

How to do contextual pre-loader for ajax properly?

My plan is to use contextual pre-loader for all ajax calls without modifying the code. Conventionally, my ajax call would be something like this. // do some pre-loader for example spinning wheel $('#...
toy's user avatar
  • 12.1k
2 votes
1 answer
284 views

Touch events clicks whats behind it phonegap zepto

I created a drawer using HTML5 that has position fixed with a z-index greater than what's behind it (similar to the Gmail android native app). When it is toggled(opened), and after clicking any link, ...
Ray's user avatar
  • 110
0 votes
0 answers
312 views

Mobile Browser Tap Event

I am working on a mobile HTML 5 prototype, and I recently added some animations to my app. I am using Zepto and I am really happy with it. However whenever I tap something in the app, there is a very ...
s_curry_s's user avatar
  • 3,422

15 30 50 per page