10 things you should never throw away

6
10 Things You Should Never Throw Away This is an fascinating content I discovered this morning. I do not 100% agree with just concerning all the writer, but I discovered it to be a good read. function retrieveAd(pageNum) var outAd; for (var i = 1; i 0 ) outAd = $('#inject'+i+'-'+pageNum).html(); return outAd; function hashUI() $('.pagelink a, .prevControl, .nextControl:not(.upNextLink)').each(function() $(this).attr('href',$(this).attr('data-hash')); ); function adRefreshPageView() if (HSW.ads) HSW.ads.refresh(); else if (DDM.adManager) DDM.adManager.refresh(); (self.COMSCORE && COMSCORE.beacon(c1: "2", c2: "19985763")); $.ajax('/shared/comscore/ajax.xml'); function getCurrentPageUrl() var currentPage = parseHash(); var pageName = [ window.location.hostname, window.location.pathname, ].join('').replace('.htm', '');

Upload: humorouspulp697

Post on 13-Apr-2017

115 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 10 Things You Should Never Throw Away

10 Things You Should Never Throw Away

This is an fascinating content I discovered this morning. I do not 100% agree with just concerning allthe writer, but I discovered it to be a good read.

function retrieveAd(pageNum)

var outAd;

for (var i = 1; i 0 )

outAd = $('#inject'+i+'-'+pageNum).html();

return outAd;

function hashUI()

$('.pagelink a, .prevControl, .nextControl:not(.upNextLink)').each(function()

$(this).attr('href',$(this).attr('data-hash'));

);

function adRefreshPageView()

if (HSW.ads)

HSW.ads.refresh();

else if (DDM.adManager)

DDM.adManager.refresh();

(self.COMSCORE && COMSCORE.beacon(c1: "2", c2: "19985763"));

$.ajax('/shared/comscore/ajax.xml');

function getCurrentPageUrl()

var currentPage = parseHash();

var pageName = [

window.location.hostname,

window.location.pathname,

].join('').replace('.htm', '');

Page 2: 10 Things You Should Never Throw Away

pageName += (currentPage + '.htm');

return pageName;

function sendPrevNextOmniture(e, buttonType, position)

var pageNum = parseHash();

var pageType;

if (pageNum == 0)

pageType = 'Page Zero';

else

pageType = 'Interior Page';

sendTags(pageTitle + ' : ' + buttonType + ' : ' + position + ' : Page ' + pageNum, null, , e, null,pageNum);

$(window).hashchange(function()

moveSlide(parseHash());

);

$(document).ready(function()

var botMode = false;

if(!botMode)

//console.log(ich.listFull());

//ich.refresh();

var injAd;

injAd = retrieveAd(pageNum);

$('#SlideInner').html(ich.listFull());

//last page stuff, hack up that content!

if ($('#Sources').length > 0)

$('#Sources').next('ul').addClass('sourcesList');

$('#Sources').text('View Sources');

Page 3: 10 Things You Should Never Throw Away

$('#Sources').before('

+

');

$('.sourcesBullet').before('');

$('.sourcesList').after('');

else

$('#UpNext').after('');

if ($('#AuthorsNote').length > 0)

$('#AuthorsNote').before('');

$('#SourcesDivider1').css('margin-top', '20px');

if ($('#OtherArticles').length > 0)

var otherArticles = $('#OtherArticles')[0].outerHTML;

$('#OtherArticles').next('ul').addClass('otherArticlesList');

if ($('.otherArticlesList').length > 0)

otherArticles += $('.otherArticlesList')[0].outerHTML;

$('.otherArticlesList').remove();

$('#OtherArticles').remove();

$('#SourcesDivider2').after('

' + otherArticles + '

');

if ($('#MoreLinks').length > 0)

var moreLinks = $('#MoreLinks')[0].outerHTML;

$('#MoreLinks').next('ul').addClass('moreLinksList');

if ($('.moreLinksList').length > 0)

moreLinks += $('.moreLinksList')[0].outerHTML;

$('.moreLinksList').remove();

Page 4: 10 Things You Should Never Throw Away

$('#MoreLinks').remove();

$('#OtherArticles0').after('

' + moreLinks + '

');

$('#Sources, .sourcesBullet').click(function()

$('.sourcesList').toggle('slow', function()

);

if ($('.sourcesBullet').hasClass('sourcesBulletClosed'))

$('.sourcesBullet').removeClass('sourcesBulletClosed').addClass('sourcesBulletOpen');

$('.sourcesBullet').html('-');

else

$('.sourcesBullet').removeClass('sourcesBulletOpen').addClass('sourcesBulletClosed');

$('.sourcesBullet').html('+');

//remove height on #SlidesContainer so it can expand

$('#SlidesContainer').css('height', 'auto');

);

$('.paginationIcons li').hover(function()

var page =$('.paginationIcons li').index(this);

$('#pageOverlay'+page).css('display','block');

$('#overlayText'+page).vAlign($('#overlayText'+page).height());

,

function()

var page =$('.paginationIcons li').index(this);

$('#pageOverlay'+page).css('display','none');

);

//prev/next onClick omniture

Page 5: 10 Things You Should Never Throw Away

$(".prevControl").click(function(e)

$('.sourcesList').css('display', 'none');

$('.sourcesBullet').removeClass('sourcesBulletOpen').addClass('sourcesBulletClosed');

$('.sourcesBullet').html('+');

sendPrevNextOmniture(e, 'Prev', 'Top');

);

//prev/next onClick omniture

$(".prevControlBottom").click(function(e)

$('.sourcesList').css('display', 'none');

$('.sourcesBullet').removeClass('sourcesBulletOpen').addClass('sourcesBulletClosed');

$('.sourcesBullet').html('+');

sendPrevNextOmniture(e, 'Prev', 'Bottom');

);

$('.deepLink').click(function(e)

sendPrevNextOmniture(e, 'Deep Link', 'Bottom');

);

hashNum = parseHash();

pageNum = (!hashNum) ? pageNum : hashNum;

if (injAd != null) injectAd(pageNum, injAd);

setSlide(pageNum);

hashUI();

);

10

Things You Should Never Throw Away

If the brilliant late-1980s TV show "MacGyver" has taught us anything, it's that you can repel a gangof thugs, break out of prison, and build a functioning spacecraft with little more than a paper clip, aC battery, some twist ties and an empty tube of toothpaste.

Page 6: 10 Things You Should Never Throw Away

Yes, OK, fine, MacGyver was fiction, but you can conjure up all sorts of handy household fixes -- noimprovised bazookas, sadly -- with everyday items that most of us thoughtlessly chuck in thegarbage. Join us on a journey through the exciting world of Internet-fueled recycling/repurposingobsessions to identify the 10 things you should absolutely never throw away.

http://home.howstuffworks.com/green-living/10-things-never-throw-away.htm#mkcpgn=rssnws1