diff options
author | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 03:57:47 +0400 |
---|---|---|
committer | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 07:57:22 +0400 |
commit | 3c7ab1998891fe3a22fefaf5c9b1ace9b1f4026c (patch) | |
tree | bff04b96acaa767f0e1a67b16c970da3591ab4cb /webdoc | |
parent | 73c5595901554fb503ebf732bda46106725f25be (diff) |
[webdoc] add the views directory
Diffstat (limited to 'webdoc')
-rw-r--r-- | webdoc/views/common.css | 38 | ||||
-rw-r--r-- | webdoc/views/common.js | 46 | ||||
-rw-r--r-- | webdoc/views/images/native-browser-icon.png | bin | 0 -> 1736 bytes | |||
-rw-r--r-- | webdoc/views/reset.css (renamed from webdoc/reset.css) | 0 |
4 files changed, 84 insertions, 0 deletions
diff --git a/webdoc/views/common.css b/webdoc/views/common.css new file mode 100644 index 00000000..d7abcff9 --- /dev/null +++ b/webdoc/views/common.css @@ -0,0 +1,38 @@ +/*****Common.css*****/ +/*bare-bones css for most layouts*/ +body { + padding: 0; + height: 100%; +} +html { + padding: 0; + margin: 0 auto; + height: 100%; +} +.code { + font-family: "Courier New", Courier; +} +.table { + padding-left:2px; + padding-right:2px; + padding-top:0px; + padding-bottom:0px; +} +div.Content { + margin-right: 1em; +} +iframe { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +#content_frame { + width: 100%; + height: 100%; +} +#main_part { + height: 100%; +} diff --git a/webdoc/views/common.js b/webdoc/views/common.js new file mode 100644 index 00000000..887b731f --- /dev/null +++ b/webdoc/views/common.js @@ -0,0 +1,46 @@ +$(function () { +//a hack for sizing our iframe correctly +/* var getHeight = function () { + <!-- + var viewportwidth; + var viewportheight; + // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight + if (typeof window.innerWidth != 'undefined') + { + viewportwidth = window.innerWidth, + viewportheight = window.innerHeight + } + // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) + else if (typeof document.documentElement != 'undefined' + && typeof document.documentElement.clientWidth != + 'undefined' && document.documentElement.clientWidth != 0) + { + viewportwidth = document.documentElement.clientWidth, + viewportheight = document.documentElement.clientHeight + } + // older versions of IE + else + { + viewportwidth = document.getElementsByTagName('body')[0].clientWidth, + viewportheight = document.getElementsByTagName('body')[0].clientHeight + } + return viewportheight; + //--> + } + + var main_part = $('#main_part'); + var content_frame = main_part.find('#content_frame'); + var resize_mainpart = function () { +// main_part.height (getHeight() - 75); +// main_part.children('#side').css ('height', '100%'); + content_frame.css ('height', '97.5%'); + } + + var resizeTimer; + $(window).resize(function() { + clearTimeout(resizeTimer); + resizeTimer = setTimeout(resize_mainpart, 100); + }); + + resize_mainpart ();*/ +}); diff --git a/webdoc/views/images/native-browser-icon.png b/webdoc/views/images/native-browser-icon.png Binary files differnew file mode 100644 index 00000000..e0375054 --- /dev/null +++ b/webdoc/views/images/native-browser-icon.png diff --git a/webdoc/reset.css b/webdoc/views/reset.css index f1603186..f1603186 100644 --- a/webdoc/reset.css +++ b/webdoc/views/reset.css |