Skip to content

Commit

Permalink
Trying the v2 commit and tagging again. Totally screwed it up last time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jan 24, 2011
1 parent 40518d4 commit d7d80dc
Show file tree
Hide file tree
Showing 61 changed files with 1,023 additions and 232 deletions.
Binary file removed apple-touch-icon.png
Binary file not shown.
Binary file added css/blank.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions css/ie.css
@@ -0,0 +1,19 @@
/* ----- IE-only styles --------------------------------------------------*/
h1#logo img { behavior: url("css/iepngfix.htc"); width: 321px; height: 58px; }

div#content-wrap, div#flickr-wrap, form#form-signup { height: 1%; }

div#flickr-wrap p.more { margin-right: 0.75em; }
form#form-signup ul { margin-left: 0; }
form#form-forum-login input#forum-submit { padding: 0; }

div#content-wrap, div#footer { width: 770px; wid\th: 730px; }
div#license p { width: 770px; wid\th: 708px; }

ul#nav li { _heig\ht: 25px; _padding-t\op: 5px; }
ul#nav li a { _display: inline; _border: 0; _padding-bottom: 7px; }

div#cities div { _height: 1%; }
div#cities ul { padding-right: 0; }
div#cities ul.first { padding-left: 0; }
div#cities p { padding-top: 0.4em; }
86 changes: 86 additions & 0 deletions css/iepngfix.htc
@@ -0,0 +1,86 @@
<public:component lightWeight="true">
<public:attach event="onpropertychange" onevent="propertyChanged()" />
<public:attach event="onbeforeprint" onevent="beforePrint()" for="window"/>
<public:attach event="onafterprint" onevent="afterPrint()" for="window"/>
<script>

/*
* PNG Behavior
*
* This script was created by Erik Arvidsson (http://webfx.eae.net/contact.html#erik)
* for WebFX (http://webfx.eae.net)
* Copyright 2002-2004
*
* For usage see license at http://webfx.eae.net/license.html
*
* Version: 1.02
* Created: 2001-??-?? First working version
* Updated: 2002-03-28 Fixed issue when starting with a non png image and
* switching between non png images
* 2003-01-06 Fixed RegExp to correctly work with IE 5.0x
* 2004-05-09 When printing revert to original
*
*/

var supported = /MSIE ((5\.5)|[6789])/.test(navigator.userAgent) &&
navigator.platform == "Win32";

var realSrc;
var blankSrc = "css/blank.gif";
var isPrinting = false;

if (supported) fixImage();

function propertyChanged() {
if (!supported || isPrinting) return;

var pName = event.propertyName;
if (pName != "src") return;
// if not set to blank
if (!new RegExp(blankSrc).test(src))
fixImage();
};

function fixImage() {
// get src
var src = element.src;

// check for real change
if (src == realSrc && /\.png$/i.test(src)) {
element.src = blankSrc;
return;
}

if ( ! new RegExp(blankSrc).test(src)) {
// backup old src
realSrc = src;
}

// test for png
if (/\.png$/i.test(realSrc)) {
// set blank image
element.src = blankSrc;
// set filter
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft." +
"AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}
else {
// remove filter
element.runtimeStyle.filter = "";
}
}

function beforePrint() {
isPrinting = true;
element.src = realSrc;
element.runtimeStyle.filter = "";
realSrc = null;
}

function afterPrint() {
isPrinting = false;
fixImage();
}

</script>
</public:component>

0 comments on commit d7d80dc

Please sign in to comment.