mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2026-01-01 20:05:42 +03:00
Slight price increase
This commit is contained in:
13
js/script.js
13
js/script.js
@@ -1,18 +1,5 @@
|
||||
$(document)
|
||||
.ready(function() {
|
||||
var labels = ['{ browser.name }', '{ os.version }', '{ device.type }'];
|
||||
var counter = 0;
|
||||
var rotateLabel = function () {
|
||||
$('.masthead h3 .label').transition('fly down', function () {
|
||||
$(this).text(labels[counter++]).transition('fade up', 100, function (){
|
||||
if(counter>=labels.length)counter=0;
|
||||
$(this).transition('jiggle');
|
||||
});
|
||||
});
|
||||
};
|
||||
$('.masthead h3').transition({animation: 'slide up', interval: 5000});
|
||||
rotateLabel();
|
||||
setInterval(rotateLabel, 1000);
|
||||
|
||||
var updateDemo = function (result) {
|
||||
if(!result) return;
|
||||
|
||||
Reference in New Issue
Block a user