PDA

View Full Version : Cprogramming tutorials



maxorator
10-01-2006, 01:24 AM
I noticed that there is no "print mode" in Cprogramming tutorials, so I messed with it a bit. Finally, I got this (enter this to your address bar):

javascript:void(document.getElementsByTagName("td")[1].style.display="none");
void(document.getElementsByTagName("td")[2].style.display="none");
void(document.getElementsByTagName("td")[3].style.display="none");
void(document.getElementsByTagName("td")[4].style.display="none");
void(document.getElementsByTagName("td")[5].style.display="none");
void(document.getElementsByTagName("td")[6].style.display="none");
void(document.getElementsByTagName("td")[7].style.display="none");
void(document.getElementsByTagName("td")[8].style.display="none");
void(document.getElementsByTagName("td")[9].style.display="none");
void(document.getElementsByTagName("td")[13].style.display="none");
void(document.getElementsByTagName("iframe")[0].style.display="none");
void(document.getElementsByTagName("iframe")[1].style.display="none");
void(document.getElementsByTagName("iframe")[2].style.display="none");
And you only have the tutorial part, no other tables, menus, ads! Only the Cprogramming logo, the tutorial and nothing else.

You must remove newlines from that, because address bar only takes one line.

SlyMaelstrom
10-01-2006, 01:35 AM
Look again... every tutorial page's title read something like this:
Lesson 1: The basics of C++(Printable Version)However, your effort is greatly appreciated. Thank you for your consideration.

maxorator
10-01-2006, 01:42 AM
http://www.cprogramming.com/tutorial/bitwise_operators.html

I saw no "printable version button there". So, printable versions are available only for the first 20 tutorials, but there are much more of them

risby
10-01-2006, 01:52 AM
so I messed with it a bit ... And you only have the tutorial part, no other tables, menus, ads! Only the Cprogramming logo, the tutorial and nothing else.


Nice, Max. Kudos.