forked from qt-creator/qt-creator
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: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
Vendored
-32
File diff suppressed because one or more lines are too long
@@ -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 →" />
|
||||
<input id="button" type="button" value="Convert →" />
|
||||
<input id="titled" type="text">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user