cordova-plugin-auth-dialog
Version:
Adds support for authentication dialogs into Apache Cordova.
49 lines (46 loc) • 2.28 kB
HTML
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<h1 style="margin-top: 10px">Authentication dialogs sample</h1>
<div class="secured-link padded">
<label>Secured host address:</label>
<input type="text" name="securedHost" value="" />
</div>
<div class="buttons padded">
<button id="navigate">Navigate to link</button>
<button id="xhr">Make XHR to link</button>
<button id="authenticate">Authenticate (iOS only)</button>
<button id="clear">Clear</button>
</div>
<div class="log padded">
<textarea id="log" contenteditable="false"></textarea>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>