ECWolverines Posted August 8, 2022 Share Posted August 8, 2022 Site URL: https://www.ecwolverines.com/home The following code has been used for 6 years on the Squarespace 7.0 site. Recently this past month I have updated to Squarespace 7.1, and unfortunately the code no longer works. The code is exactly the same and just copy and past from the previous. Below is the code (javascript) that is used by Scorestream. When pasted in Code Block and choosing Javascript using 7.1, the code still does not work. Attached is a photo of what the widget is supposed to look like display wise. <div class="scorestream-widget-container" data-ss_widget_type="horzScoreboard" data-user-widget-id="50413"></div><script async="async" type="text/javascript" src="https://scorestream.com/apiJsCdn/widgets/embed.js"></script> Ellwood City Wolverines | Bradley Windhorst | www.ecwolverines.com Link to comment
paul2009 Posted August 8, 2022 Share Posted August 8, 2022 (edited) On 8/8/2022 at 9:50 AM, ECWolverines said: When pasted in Code Block and choosing Javascript using 7.1, the code still does not work. The code you've quoted is HTML, not JavaScript. This is a common misconception because the HTML is being used to load a JavaScript file 🙂 Change the setting and ensure the view source option is disabled and you'll be able to check if the code works as expected. Edited August 11, 2022 by paul2009 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
ECWolverines Posted August 11, 2022 Author Share Posted August 11, 2022 On 8/8/2022 at 9:14 AM, paul2009 said: The code you've quoted is HTML, not JavaScript. This is a common misconception because the HTML is being used to load a JavaScript file 🙂 Change the setting and ensure the view source option is disabled. I've tried that option as well and had the view source option disabled. I contacted Squarespace before leaving this post here. The person replying said it specifically was javascript after I said it was originally HMTL source. They also mentioned that they said to contact ScoreStream about something called "oEmbed standard" which I am not sure what they are referring too. So back to square one, where this code does not work either way Java or HTML in the code block. Ellwood City Wolverines | Bradley Windhorst | www.ecwolverines.com Link to comment
paul2009 Posted August 11, 2022 Share Posted August 11, 2022 33 minutes ago, ECWolverines said: The person replying said it specifically was javascript after I said it was originally HMTL source. So back to square one, where this code does not work either way Java or HTML in the code block. Sadly they are wrong, but it's understandable because Squarespace don't provide assistance with HTML or JavaScript so the representative wouldn't necessarily understand the difference. Regardless, I recommend that you use this instead: <iframe src="https://scorestream.com/widgets/scoreboards/horz?userWidgetId=44688" style="padding:0px;border:0px;width:100%;max-width:100%;height:100%;max-height:100%;min-width:100%;" title="Realtime sports scoreboard widget" scrolling="no" frameborder="0"></iframe> Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment