All Questions
27
questions
9
votes
4
answers
9k
views
How to implement jquery like slideDown() in zepto
I am using zepto library for my mobile web site. I have recently learnt that zepto does not have slideDown() plugin like jquery. I would like to implement the same for zepto.
I have tried one on ...
6
votes
2
answers
5k
views
How to test for mobile webkit
I'm looking to build a new website and want to take a responsible "mobile-first" approach. One tenet of this methodology is to only load what you need, and to avoid including large wasteful libraries ...
4
votes
1
answer
5k
views
What are the advantages of PhoneJS over a regular backbonejs/HTML5 app?
I tried using PhoneJS - it's pretty easy to get started, and seems to provide a good framework. However, I usual prefer to avoid pre-built framework as they limit my flexibly. My main 2 concerns are:
...
4
votes
4
answers
8k
views
window.jQuery or jQuery?
(function($) {
// plugin code
})(window.jQuery);
Seems this code almost the same effect, as:
(function($) {
// plugin code
})(jQuery);
Should I use window.jQuery or jQuery for function argument? ...
2
votes
6
answers
215
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<...
2
votes
2
answers
910
views
Problems with zepto animation ids
Whenever I try to animate an image with Zepto, it works fine. But I can only access it with the name of the tag I used to activate it, not it's id. For example,
<img id="circle" name="circle" ...
2
votes
1
answer
285
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, ...
1
vote
3
answers
2k
views
How to implement a div handler/resizer that updates two divs?
I'm looking for a way to build a handler/resize as seen on jsfiddle (screenshot below). My app has two divs each with a height of 50% and I would like to find a way to allow the user to resize the ...
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 ...
1
vote
2
answers
1k
views
Is there a small and clean jQuery-like library that focuses only on HTML5?
jQuery can do some nice things for you. It also frees you from having to take care for different browsers. The tradeoffs are the size and readability jQuery's own code.
Is there a similar library ...
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 ...
1
vote
1
answer
989
views
Swipe a division and make it follow the swipe direction
I am using Zepto (with the Touch Module)
I have a div with a 'swipe' listener on it.
I want the div to follow the finger of the user when swiping it, just as you swipe away your notifications on your ...
1
vote
2
answers
910
views
zepto javascript show x elements
Using zepto.js, how can You show X items from a ul, hide the rest and show them
only when the user clicks "show more" Link/button?
10X!
1
vote
0
answers
111
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:
...
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 ...