Hints

Multiple instances of CurvyCorners on your web page

0

To have multiple instances of CurvyCorners on a page you need to add all the DIVs that require curvy corners as Variables in the JavaScript in the Head of your document.

To add nice curvy corners to your layout, simply upload the curvycorners javascript to your site’s scriptfolder.
Then call the script library in the head of your document like this…

<script type=”text/JavaScript” src=”./scripts/curvycorners.js”></script>

…then run the script in your page by adding this script to the head of your document…Notice that “lsidebar” and “mainwrap” etc are the IDs of the DIVs that you want curvy.


<script type=”text/JavaScript”>
window.onload = function() {
var settings = {
tl: { radius: 8 },
tr: { radius: 8 },
bl: { radius: 8 },
br: { radius: 8 },
antiAlias: true
}
var divObj1 = document.getElementById(“lsidebar”);
var divObj2 = document.getElementById(“mainwrap”);

curvyCorners(settings, divObj1, divObj2);
}
</script>

To add curves to other DIVs you need to just add another variable…e.g…

var divObj3 = document.getElementById(“div-id-here”); 

…and add the name of the variable into the settings…e.g…

curvyCorners(settings, divObj1, divObj2, divObj3);

helvetireader

Helvetireader – A minimal, anti-social theme for Google Reader

0

I can’t get my head round Google Reader but Helvetireader certainly helps. This stylesheet can be installed as a chrome extension or a Firefox add-in and gets rid of all the junk and just serves you the headlines in a nice, legible skin.  Made by Hicksdesign by the way…

How to force download a PDF file instead of view in the browser

0

Been having problems with my work computer when viewing PDFs in the browser  - takes far too long to start up Adobe Reader on my machine. I found this snippet of code to force download the PDF instead.
Upload the file you want to make available for download from your Website. For example, huge_document.pdf
Edit a new PHP file and name it the same as your file to be downloaded, only with the extension .php. For example: huge_document.php
Your PHP file should look like this:

<?php
header(‘Content-disposition: attachment; filename=huge_document.pdf’);
header(‘Content-type: application/pdf’);
readfile(‘huge_document.pdf’);
?>

Link to your PHP file as a download link. For example:

<a href=”huge_document.php”>Download my huge document (PDF)</a>

To change the MIME type of the file you want to download, edit line 3

header(‘Content-type: application/pdf’);

Go to Top