summaryrefslogtreecommitdiffstats
path: root/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-06-16 16:05:44 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-06-16 16:05:44 -0700
commitc74bede6f773bd0a0c6362a6647a2939554ccd9a (patch)
treec43abdf614a40e6932e8d5597817a6197a3742d5 /projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
parent6616faa0d09dc0fd6f60bc5ce122476aefaec44c (diff)
downloadDotNetOpenAuth-c74bede6f773bd0a0c6362a6647a2939554ccd9a.zip
DotNetOpenAuth-c74bede6f773bd0a0c6362a6647a2939554ccd9a.tar.gz
DotNetOpenAuth-c74bede6f773bd0a0c6362a6647a2939554ccd9a.tar.bz2
Removes project templates.
These haven't run correctly for many months anyway, and they'd be horribly out-dated even if they did work.
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js')
-rw-r--r--projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js61
1 files changed, 0 insertions, 61 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js b/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
deleted file mode 100644
index 1e47965..0000000
--- a/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
+++ /dev/null
@@ -1,61 +0,0 @@
-$(function() {
- var loginContent = 'LoginFrame.aspx';
- var popupWindowName = 'openidlogin';
- var popupWidth = 365;
- var popupHeight = 273; // use 205 for 1 row of OP buttons, or 273 for 2 rows
- var iframe;
-
- {
- var div = window.document.createElement('div');
- div.style.padding = 0;
- div.id = 'loginDialog';
-
- iframe = window.document.createElement('iframe');
- iframe.src = "about:blank"; // don't set the actual page yet, since FireFox & Chrome will refresh it when the iframe is moved in the DOM anyway.
- iframe.frameBorder = 0;
- iframe.width = popupWidth;
- iframe.height = popupHeight;
- div.appendChild(iframe);
-
- window.document.body.appendChild(div);
- }
-
- $(document).ready(function() {
- $("#loginDialog").dialog({
- bgiframe: true,
- modal: true,
- title: 'Login or register',
- resizable: false,
- hide: 'clip',
- width: popupWidth,
- height: popupHeight + 50,
- buttons: {},
- closeOnEscape: true,
- autoOpen: false,
- close: function(event, ui) {
- // Clear the URL so Chrome/Firefox don't refresh the iframe when it's hidden.
- iframe.src = "about:blank";
- },
- open: function(event, ui) {
- iframe.src = loginContent;
- },
- focus: function(event, ui) {
- // var box = $('#openid_identifier')[0];
- // if (box.style.display != 'none') {
- // box.focus();
- // }
- }
- });
-
- $('.loginPopupLink').click(function() {
- $("#loginDialog").dialog('open');
- });
- $('.loginWindowLink').click(function() {
- if (window.showModalDialog) {
- window.showModalDialog(loginContent, popupWindowName, 'status:0;resizable:1;scroll:1;center:1;dialogHeight:' + popupHeight + 'px;dialogWidth:' + popupWidth + 'px');
- } else {
- window.open(loginContent, popupWindowName, 'modal=yes,status=0,location=1,toolbar=0,menubar=0,resizable=0,scrollbars=0,height=' + popupHeight + 'px,width=' + popupWidth + 'px');
- }
- });
- });
-});