{"version":3,"sources":["webpack:///./src/pages/3.js"],"names":["Redirect","props","updateDimensions","setState","width","window","innerWidth","setURL","state","url","componentDidMount","this","componentWillUnmount","render","Fragment","http-equiv","content","href","React","Component"],"mappings":"uKAEqBA,E,oBACnB,WAAYC,GAAQ,IAAD,SACjB,cAAMA,IAAN,MAeFC,iBAAmB,WACjB,EAAKC,SAAS,CACZC,MAAOC,OAAOC,aACb,WACD,EAAKC,aApBU,EAwBnBA,OAAS,WACH,EAAKC,MAAMJ,MAAQ,IACrB,EAAKD,SAAS,CAAEM,IAAK,0EACZ,EAAKD,MAAMJ,MAAQ,KAC5B,EAAKD,SAAS,CAAEM,IAAK,yEA1BvB,EAAKD,MAAQ,CACXJ,MAAO,EACPK,IAAK,MAJU,E,kHAQnBC,kBAAA,WACEC,KAAKT,oB,EAGPU,qBAAA,WACED,KAAKT,oB,EAmBPW,OAAA,WAEE,OACE,kBAAC,IAAMC,SAAP,KACE,0BAAMC,aAAW,UAAUC,QAASL,KAAKH,MAAMC,MAC/C,uFAA4D,uBAAGQ,KAAK,gEAAR,mE,GAtC9BC,IAAMC","file":"component---src-pages-3-js-9bdbb9bd69c2428b7d60.js","sourcesContent":["import React from \"react\"\r\n\r\nexport default class Redirect extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n width: 0,\r\n url: null\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.updateDimensions();\r\n }\r\n\r\n componentWillUnmount() {\r\n this.updateDimensions();\r\n }\r\n\r\n updateDimensions = () => {\r\n this.setState({\r\n width: window.innerWidth\r\n }, () => {\r\n this.setURL();\r\n });\r\n };\r\n\r\n setURL = () => {\r\n if (this.state.width < 750) {\r\n this.setState({ url: '0; url=http://news.fullerton.edu/feature/temperature-rising/#chapter3' });\r\n } else if (this.state.width > 750) {\r\n this.setState({ url: '0; url=http://news.fullerton.edu/feature/temperature-rising/#view/3' });\r\n }\r\n };\r\n\r\n render() {\r\n // console.log(this.state.width);\r\n return (\r\n \r\n \r\n

If you are not automaticlly redirected, click this link: http://news.fullerton.edu/feature/temperature-rising/#view/3

\r\n
\r\n )\r\n }\r\n}"],"sourceRoot":""}