mirror of
https://github.com/KevinMidboe/planetposen-original.git
synced 2025-10-29 17:50:33 +00:00
Init commit. Added under construction banner for all pages.
This commit is contained in:
BIN
en/Scripts/Widgets/HTMLRegion/Default.png
Normal file
BIN
en/Scripts/Widgets/HTMLRegion/Default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
BIN
en/Scripts/Widgets/HTMLRegion/HTMLRegionWorldMap.png
Normal file
BIN
en/Scripts/Widgets/HTMLRegion/HTMLRegionWorldMap.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
BIN
en/Scripts/Widgets/HTMLRegion/Icon.png
Normal file
BIN
en/Scripts/Widgets/HTMLRegion/Icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
53
en/Scripts/Widgets/HTMLRegion/Paste.css
Normal file
53
en/Scripts/Widgets/HTMLRegion/Paste.css
Normal file
@@ -0,0 +1,53 @@
|
||||
/* The main widget <div> element.
|
||||
*/
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion {
|
||||
}
|
||||
|
||||
/* Root <div> for all widget views.
|
||||
*/
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion .html_region_widget {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* HTML Snippet View.
|
||||
*/
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion div.HTMLRegionSnippetView {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* The Status View.
|
||||
*/
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion .HTMLRegionStatusView {
|
||||
background: rgb(206,206,206);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Status View table.
|
||||
*/
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion .StatusMessageTable {
|
||||
position: absolute;
|
||||
border-collapse: collapse;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.com-apple-iweb-widget-HTMLRegion .StatusMessageTable td {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
25
en/Scripts/Widgets/HTMLRegion/Paste.js
Normal file
25
en/Scripts/Widgets/HTMLRegion/Paste.js
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// iWeb - Paste.js
|
||||
// Copyright (c) 2007-2008 Apple Inc. All rights reserved.
|
||||
//
|
||||
|
||||
var Paste=Class.create(PrefMarkupWidget,{widgetIdentifier:"com-apple-iweb-widget-HTMLRegion",initialize:function($super,instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp)
|
||||
{if(instanceID)
|
||||
{$super(instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp);}
|
||||
if(runningInApp)
|
||||
{window.onresize=this.resize.bind(this);}
|
||||
var parentDiv=this.div('htmlRegion');this.m_views={};this.m_views["html-snippet"]=new HTMLRegionSnippetView(this,parentDiv);this.m_views["default-image-status"]=new HTMLRegionDefaultImageStatus(this,parentDiv);var iframe_src=eval(instanceID+'_htmlMarkupURL');this.m_iframe='<iframe id="'+instanceID+'-frame" '+'src="'+iframe_src+'" '+'frameborder="0" style="width: 100%; height: 100%;" '+'scrolling="no" marginheight="0" marginwidth="0" allowTransparency="true"></frame>';this.updateFromPreferences();},updateFromPreferences:function()
|
||||
{if(this.preferenceForKey('emptyLook')===true)
|
||||
{this.showView("default-image-status");}
|
||||
else
|
||||
{this.showView("html-snippet");}},changedPreferenceForKey:function(key)
|
||||
{if(key=="emptyLook")
|
||||
{if(this.preferenceForKey(key)===false)
|
||||
{if(this.m_currentView==this.m_views["html-snippet"])
|
||||
{this.m_views["html-snippet"].render();}
|
||||
this.showView("html-snippet");this.preferences.postNotification("BLWidgetShouldStartAutoSizingNotification",1);}
|
||||
else
|
||||
{this.showView("default-image-status");}}},resize:function()
|
||||
{$H(this.m_views).each(function(pair){pair.value.resize();});}});var HTMLRegionSnippetView=Class.create(View,{m_divId:"html-snippet",m_divClass:"HTMLRegionSnippetView",render:function()
|
||||
{this.ensureDiv().update(this.m_widget.m_iframe);if(this.m_widget.runningInApp)
|
||||
{this.m_widget.preferences.postNotification("BLWidgetIsSafeToDrawNotification",0);}}});var HTMLRegionDefaultImageStatus=Class.create(StatusView,{m_divId:"default-image-status",m_divClass:"HTMLRegionStatusView",badgeImage:"HTMLRegionWorldMap.png",badgeImageWidth:198,badgeImageHeight:94});
|
||||
Reference in New Issue
Block a user