Add JavaScript to Google Sites - javascript

My goal is to create a nice radar chart, which I'd like to display on my Google site. I found the rcharts website quite helpful. My question is now, how do I implement the simple java script code on my Google Site? An example of what I'm after is a demo in the RGrqaph download:
https://www.rgraph.net/download.html#stable
And it's called: demos/radar-basic.html
Thank you very much!
I tried the link proposed below as well, however, I get the following error when I post everything into the HTML box: 2+13 - 30: failed to load external url RGraph.radar.js
Sceenshot
Any suggestions?

Related

Google Model Viewer AR

we are trying to make a custom 3D configurator with AR capabilities, but we found out that model-viewer from google is too limited for our needs, so we are doing it in three.js
To use the AR we analyzed the source code and found out that there is a redirect to this link when clicking the model-viewer button:
intent://googlewebcomponents.github.io/model-viewer/examples/assets/Astronaut.glb?link=https%3A%2F%2Fgooglewebcomponents.github.io%2Fmodel-viewer%2Fexamples%2Faugmented-reality.html&title=A%203D%20model%20of%20an%20astronaut
(taken from the Google's example page)
Out first tests made a warning in the console like "Inaccessible Navigation" silently failing.
Do you have an idea on what are we doing wrong?
The link above was wrong. I inspected the source code and find out that the correct one is built like this:
intent://${modelUrl}?link=${link}&title=${title}#Intent;scheme=${scheme};package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${fallbackUrl};end;
Where:
modelUrl path to the glb file without http/https
link url of the page
title textual title of the model
scheme http / https
fallbackUrl the url to fallback if something goes wrong
This link works only for android phones with AR hardware.

Skype web control : Call feature is not working

I integrated the Skype web control for our website, chat feature is working very well.
But when I click on the the voice or video call.
It open a new tab where It try to load the url https://swc.cdn.skype.com/v/0.80.47/calling-popup.html
Which will give the error 404 (not found)
I have search the doc and other resourced available but no luck.
any help would be appreciated.
Note: If you know how to hide these icon without CSS. It will also help.
Thanks.
Resources:
Browser: Chrome (68.0.3440.106)
SKD url: https://swc.cdn.skype.com/sdk/v1/sdk.min.js
Doc: https://dev.skype.com/webcontrol
Issue: https://github.com/Microsoft/BotBuilder/issues/3882
The error you have there has nothing to do with Skype , it just a question of the path to the HTML that is supposed to trigger your link, check path, or if the file is there where the url points to.

How can i add API key in this Google maps code

I have played enough with this code.
Mostly from line 1558-1680 but didn't find any solution.
It would be a great help if anyone could help me to add my API key to the link.
I am getting error "no API key" in console and the code works locally but doesn't work online
https://gist.github.com/anonymous/8dd127ffb42709348613d3cfcf056c63
credits to CodeXTree this code belongs to them.
PS: sorry for such a huge code
The API key belongs at the end of the script tag where you include the Google Maps js in your header or footer.
<script type="text/javascript" src="//maps.google.com/maps/api/js?key=YOUR_KEY_HERE"></script>
The gmaps.js code you linked to gets included below google maps:
<script type="text/javascript" src="path/to/gmaps.js"></script>

Google does not showing my page in search results when I use js src to get content from php page

in the name of GOD. I have a js code in a page in website 1, for showing content.
<script id="mdval" src="http://web1.com/api/pc.php" type="text/javascript" dval="sourceval">
with this method I received articles and news from database in website 2 in other server.
I dont have any problem about receiving content from website 2 and News and articles showing is very good in website 1 page. But problem is here that Google not showing website 1 page in search results. I test it in Google search after a month, but not shows the page.
Please note that I can use just client side methods with AJAX.
UPDATE:
I tested page in Fetch as Google tool. I selected fetch and render for a page that uses ajax. googlebot saw the page just like visitors with all contents and images. I click on "submit to index" for indexing page. Now after one day I searched URL in google and google listed it.
But Now problem is here that google just shows url and meta description in search results and not shows any content of the page.
please search this link in google. www.neginkoodebasir.ir/more?naapi= گیاهان مورد استفاده در تهیه کود سبز (بخش دوم)
image 1
image 2
The google bot crawler does not parse your data that come from Ajax, it's only crawl the source of the page (CTRL + U on Chrome Windows).
Try to see with https://developers.google.com/webmasters/ajax-crawling/docs/learn-more
You can also try to put the data from your PHP script on cache and load the cache.
And every X hours, reload the cache.
Try to see with this tool : support.google.com/webmasters/answer/6066468?hl=en
it seems that Google CAN crawl your scripts: "Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files." https://developers.google.com/webmasters/ajax-crawling/docs/learn-more
Try to see with this tool: support.google.com/webmasters/answer/6066468?hl=en

How do you use a URL javascript injection to create an iframe on any specified website?

I've looked for answers to this question, but the closest that I could find all had to do with using javascript to create an iframe on a user-owned page. I specifically want to inject javascript into a website via the URL in order to add a frame to Google at the bottom of that website. The syntax which I have been using is as follows:
Javascript: var ifr=document.createElement('iframe');ifr.setAttribute("src","www.Google.com");ifr.width=100+'%';ifr.height=500+'px';document.body.appendChild(ifr); void(0);
Unfortunately, every time that I submit this, the iframe throws a 500 internal server error. Can anybody lend advice as to why this may be happening?

Categories