\n \n \n \n \n )\n}\n","import React from \"react\"\nimport { makeStyles } from \"@material-ui/core/styles\"\nimport { Helmet } from \"react-helmet\"\nimport sanitizeHtml from \"sanitize-html\"\n\nimport Box from \"@material-ui/core/Box\"\nimport Container from \"@material-ui/core/Container\"\nimport Typography from \"@material-ui/core/Typography\"\n\nimport NavBar from \"./NavBar\"\n\n// Allow only a super restricted set of tags and attributes\nconst defaultOptions = {\n allowedTags: [\"strong\", \"a\"],\n allowedAttributes: {\n a: [\"href\"],\n },\n}\n\nconst sanitize = (dirty, options = {}) => ({\n __html: sanitizeHtml(dirty, { ...defaultOptions, ...options }),\n})\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n width: \"100vw\",\n overflow: \"hidden\",\n position: \"relative\",\n },\n tableHeader: {\n fontWeight: \"bold\",\n fontSize: 14,\n textTransform: \"uppercase\",\n },\n}))\n\nconst useFaqStyles = makeStyles((theme) => ({\n root: {\n '& a': {\n color: theme.palette.primary.main\n }\n }}))\n\nconst faqContent = [\n [\n \"What does TOP Factor measure?\",\n \"TOP Factor is a measure of openness and transparency for journals. TOP Factor reports the steps that a journal is taking to implement open science practices --practices that are based on the core principles of the scientific community.\",\n ],\n [\n \"Why is TOP Factor a useful metric?\",\n \"TOP Factor is a useful metric since it measures a journal’s level of openness and transparency unlike most traditional metrics that measure mean citation rates.\",\n ],\n [\n \"How was your scoring system developed?\",\n \"The TOP Guidelines were created by journals, funders, and societies to align scientific ideals with practices.\",\n ],\n [\n \"If a journal’s policies already encourage openness and transparency, why isn’t that always reflected in the journal’s TOP Factor score?\",\n [\n \"While encouraging openness and transparency are important steps towards increasing open science practices, research has shown that encouraging these practices alone is not as effective as requiring the practices. This is why level 1 of the TOP standards usually requires disclosure of practices, while level 2 requires adherence to practices.\",\n \"Another common reason a journal’s policies may not be scored as highly as expected, is that the journal’s policies require adherence to openness and transparency practices but only for certain types of studies or certain subsets of research. The TOP guidelines require adherence to openness and transparency practices across all empirical studies and all research outputs. For example, the “Data Transparency” standard applies to all data underlying reported findings. Likewise, the “Preregistration” standards apply to all inferential research, not just clinical trials, in which registration is already required.\",\n \"Finally, journal policy language can sometimes be unclear, with language that does not explicitly require adherence. For example, for data transparency, a journal might state that data deposition is “implied” or “expected.” Sometimes, a lower score can be an indication of unclear explicit requirements.\",\n ],\n ],\n\n [\n \"How can a journal increase its TOP Factor?\",\n [\n \"A journal can use our scoring rubric to identify and target which level is most appropriate. Editors can then use our recommended language for journals as a guide when drafting a journal’s updated policies.\",\n \"Editors can also compare their journal’s policies with other journals in their field by searching on https://topfactor.org/ and using high TOP Factor scored policies as examples for good practices.\",\n ],\n ],\n [\n \"Does a journal have to change all its policies or can it change just a few?\",\n \"It is not necessary to change all journal policies at once. Even changing one policy can make a difference. For example, if a journal does not currently require authors to declare a data availability statement, requiring one is an easy change that can have a big impact.\",\n ],\n [\n \"How can I suggest a journal to score?\",\n \"To suggest journals to be included, email top@cos.\",\n ],\n]\n\nexport default function SummaryPage() {\n const classes = useStyles()\n const contentClasses = useFaqStyles()\n return (\n \n \n \n Frequently Asked Questions - Transparency and Openness Promotion\n \n \n \n \n \n \n \n Frequently Asked Questions about TOP Factor\n \n \n {faqContent.map(([question, answer], i) => (\n \n {question}\n {(typeof answer === \"string\" ? [answer] : answer).map((para, j) => (\n \n \n \n ))}\n \n ))}\n \n \n \n )\n}\n","import React from \"react\"\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\"\nimport { createTheme, MuiThemeProvider } from \"@material-ui/core/styles\"\nimport CssBaseline from \"@material-ui/core/CssBaseline\"\n\nimport Home from \"./components/Home\"\nimport JournalPage from \"./components/JournalPage\"\nimport Journals from \"./components/Journals\"\nimport SummaryPage from \"./components/SummaryPage\"\nimport FaqPage from \"./components/FaqPage\"\n\nconst theme = createTheme({\n palette: {\n primary: {\n main: \"#337ab7\"\n },\n },\n typography: {\n useNextVariants: true,\n fontFamily: \"Open Sans, Roboto, sans-serif\",\n allVariants: {\n color: \"#263947\"\n }\n }\n})\n\nexport default function App() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport App from \"./App\"\nimport * as serviceWorker from \"./serviceWorker\"\n\nReactDOM.render(, document.getElementById(\"root\"))\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister()\n"],"sourceRoot":""}