Commit 851054de authored by Alessandro Portale's avatar Alessandro Portale

Doc: remove jquery from to-title-case tool

We should not keep a (very outdated) copy of jquery in or sources just
to implement one event handler.

Change-Id: I168e1240be402642cb8a4fe85204ae9e2a750818
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>
parent c4a0c695
This diff is collapsed.
......@@ -4,17 +4,18 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt Title Case</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="to-title-case.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#tester').submit(function(){
$('#titled').val($('#untitled').attr('value').toTitleCase());
return false;
document.addEventListener('DOMContentLoaded', function() {
var button = document.getElementById('button');
var untitled = document.getElementById('untitled');
var titled = document.getElementById('titled');
button.addEventListener('click', function() {
titled.value = untitled.value.toTitleCase();
});
});
});
</script>
</script>
</head>
<body><div id="container">
<h1>Qt to Title Case</h1>
......@@ -23,7 +24,7 @@
<form id="tester" action="">
<p>
<input id="untitled" type="text" value="Turn me into a title" />
<input type="submit" value="Convert &rarr;" />
<input id="button" type="button" value="Convert &rarr;" />
<input id="titled" type="text">
</p>
</form>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment