jQM - Aurdino text changer plugin test
by Dragan Gaić
HTML
<script src="http://www.jqueryscript.net/demo/jQuery-Mobile-Plugin-For-Changing-Text-with-One-Click/src/jquery.auderoTextChanger.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>jQM Complex Demo</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<!--<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>-->
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
</head>
<body>
<div data-role="page" id="index">
<div data-theme="b" data-role="header">
<h1 id="header">Index page</h1>
</div>
<div data-role="content">
<button id="demo-button">Button</button>
<input id="reset-button" type="reset" value="Reset" />
<input id="submit-button" type="submit" value="Submit" />
<a id="change-text" href="#" data-role="button" data-theme="b">Click to change the text!</a>
</div>
</div>
</body>
</html>
JavaScript
$(document).on('pagebeforeshow', '#index', function(){
$(document).on('click','#change-text',function() {
$("#header").auderoTextChanger("A new header");
$("#demo-button, #reset-button").auderoTextChanger("Erase all!");
$("#submit-button").auderoTextChanger("Send data");
});
});