mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	| @@ -9,7 +9,7 @@ Basic styles used before we boot up the parsing engine | |||||||
| Error message and password prompt | Error message and password prompt | ||||||
| */ | */ | ||||||
|  |  | ||||||
| .tc-password-wrapper, .tw-error-form { | .tc-password-wrapper, .tc-error-form { | ||||||
|     font-family: sans-serif; |     font-family: sans-serif; | ||||||
| 	z-index: 20000; | 	z-index: 20000; | ||||||
| 	position: fixed; | 	position: fixed; | ||||||
| @@ -22,7 +22,7 @@ Error message and password prompt | |||||||
| 	border-radius: 8px; | 	border-radius: 8px; | ||||||
| } | } | ||||||
|  |  | ||||||
| .tw-error-form { | .tc-error-form { | ||||||
| 	color: #fff; | 	color: #fff; | ||||||
| 	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); | 	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); | ||||||
| 	background-color: rgb(255, 75, 75); | 	background-color: rgb(255, 75, 75); | ||||||
| @@ -31,11 +31,11 @@ Error message and password prompt | |||||||
|     margin-left: -244px; /* - width/2 - paddingHorz/2 - border */ |     margin-left: -244px; /* - width/2 - paddingHorz/2 - border */ | ||||||
| } | } | ||||||
|  |  | ||||||
| .tw-error-form div { | .tc-error-form div { | ||||||
| 	padding-bottom: 1em; | 	padding-bottom: 1em; | ||||||
| } | } | ||||||
|  |  | ||||||
| .tw-error-prompt { | .tc-error-prompt { | ||||||
| 	color: #000; | 	color: #000; | ||||||
| 	text-shadow: none; | 	text-shadow: none; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -139,10 +139,10 @@ $tw.utils.error = function(err) { | |||||||
| 		// Display an error message to the user | 		// Display an error message to the user | ||||||
| 		var dm = $tw.utils.domMaker, | 		var dm = $tw.utils.domMaker, | ||||||
| 			heading = dm("h1",{text: errHeading}), | 			heading = dm("h1",{text: errHeading}), | ||||||
| 			prompt = dm("div",{text: promptMsg, "class": "tw-error-prompt"}), | 			prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), | ||||||
| 			message = dm("div",{text: err}), | 			message = dm("div",{text: err}), | ||||||
| 			button = dm("button",{text: "close"}), | 			button = dm("button",{text: "close"}), | ||||||
| 			form = dm("form",{children: [heading,prompt,message,button], "class": "tw-error-form"}); | 			form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"}); | ||||||
| 		document.body.insertBefore(form,document.body.firstChild); | 		document.body.insertBefore(form,document.body.firstChild); | ||||||
| 		form.addEventListener("submit",function(event) { | 		form.addEventListener("submit",function(event) { | ||||||
| 			document.body.removeChild(form); | 			document.body.removeChild(form); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene