You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
3.2 KiB
HTML
74 lines
3.2 KiB
HTML
7 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||
|
<title>Your Dumb</title>
|
||
|
|
||
|
<!-- Bootstrap -->
|
||
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||
|
<link href="css/font-awesome.min.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||
|
<div class="container">
|
||
|
<div class="navbar-header">
|
||
|
<a class="navbar-brand" href="index.html">Your Dumb</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
<div class="container" style="margin-top: 75px;">
|
||
|
<div class="panel panel-primary">
|
||
|
<div class="panel-body">
|
||
|
<label for="number">who so dumb?</label>
|
||
|
<input class="form-control" type="tel" id="number" placeholder="(why) sod-umb" /><br />
|
||
|
<label for="message">what dumb?</label>
|
||
|
<select class="form-control" id="message">
|
||
|
<option>U R DUMB</option>
|
||
|
<option>your stupid</option>
|
||
|
<option>UR GAYYYYY</option>
|
||
|
<option>Verily, thou are stupider than a lobotomized hog.</option>
|
||
|
</select>
|
||
|
<br />
|
||
|
</div>
|
||
|
<div class="panel-footer">
|
||
|
<button class="btn btn-success btn-block" onclick="sendSMS()"><i class="fa fa-paper-plane"></i> RELEASE TEH STOOPID</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||
|
<script src="js/jquery-3.2.1.min.js"></script>
|
||
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||
|
<script src="js/bootstrap.min.js"></script>
|
||
|
<script src="cordova.js"></script>
|
||
|
<script>
|
||
|
function sendSMS() {
|
||
|
var number = $('#number').val();
|
||
|
var message = $("#message option:selected").text() + " \nSent with YourDumb";
|
||
|
console.log("number=" + number + ", message= " + message);
|
||
|
|
||
|
//CONFIGURATION
|
||
|
var options = {
|
||
|
replaceLineBreaks: true, // true to replace \n by a new line, false by default
|
||
|
android: {
|
||
|
intent: ''
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var success = function () {
|
||
|
navigator.notification.alert('You sure showed them.', null, "Sent!", "yup.");
|
||
|
};
|
||
|
var error = function (e) {
|
||
|
alert('Message Failed: ' + e);
|
||
|
};
|
||
|
|
||
|
window.sms.send(number, message, options, success, error);
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|