Can i use Google Visualization: Organizational Chart in offline mode ?
Sadly is not possible to use google charts offline.
Read the FAQ for more information:
https://developers.google.com/chart/interactive/faq?hl=it#offline
save https://www.google.com/jsapi as a my.js file(copy-paste with some text editor) on the same folder as your html and replace
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
with
<script type='text/javascript' src='my.js'></script>
This would not work
first Google do not permit this
secondly if you copy paste it would not work
as jsapi file generates a file like google/udc/?vi.... referencing locally will not work if you
add <script type='text/javascript' src='my.js'></script> it will generate file my.js/?vi....'
and it would not load (404 Not Found) if you remove .js extention
I't not possible to use google charts offline. Legaly impossible.
I made an organizational chart using Jit js, and you can use it offline.
https://github.com/rlopez0689/OrgChartJit
Related
This R Shiny application appears to use DT to display its tables. At least in the source code I see:
<script src="plotly-binding-4.10.0/plotly.js"></script>
<link href="datatables-css-0.0.0/datatables-crosstalk.css" rel="stylesheet" />
<script src="datatables-binding-0.20/datatables.js"></script>
<link href="crosstalk-1.2.0/css/crosstalk.min.css" rel="stylesheet" />
<script src="crosstalk-1.2.0/js/crosstalk.min.js"></script>
It also has a "CSV" button to download the data:
How do I download the data from this website myself without clicking? I suppose the button runs some javascript, which makes a network call, but the "network" tab of the chrome debugger doesn't show any activity.
Ideally I could find a URL to the data, and then I could use the language of my choice (e.g., wget, curl, python, ..).
Looks like the raw data are coming from here via the project github. Seems like git pull could do it for you pretty easily.
https://github.com/Metropolitan-Council/covid-poops/blob/main/R/d_covid_cases.R
https://static.usafacts.org/public/data/covid-19/covid_confirmed_usafacts.csv?_ga=2.86006619.233414847.1642517751-2016304881.1642174657
And the other data are in this repo.
https://github.com/Metropolitan-Council/covid-poops/tree/main/data
I was able to use the python requests library to pull the raw data.
import requests
x = requests.get('https://static.usafacts.org/public/data/covid-19/covid_confirmed_usafacts.csv?_ga=2.86006619.233414847.1642517751-2016304881.1642174657')
print(x.text)
Edit: It looks like the shiny data are coming from here. I would just grab them via git. The github readme states, "The Shiny app is located in ./metc-wastewater-covid-monitor. /data contains relevant CSV data and /www contains CSS, HTML, and relevant font files the app needs upon running."
https://github.com/Metropolitan-Council/covid-poops/tree/main/metc-wastewater-covid-monitor/data
You can write a script to use a headerless browser to navigate to the page and download the file. Selenium is the usual first choice for this kind of work.
So im using zurb foundation framework and something is really weird. On my local server, everything is working fine, however, when I upload the files to my online test server, the accordion drop downs will not work (under courses). Also, my 's for header do not seem to be loading in the html. The main thing is the accordions, as well as if you load it on mobile phone, the menu drop down will not work. Is this a javascript/jquery issue or is there something else going on?
the site can be viewed at http://www.new.omegadesignla.com which is where I'm hosting for testing.
Either load each plugin individually, or include foundation.min.js, which automatically loads the Foundation Core and all JavaScript plugins.
<script src="/js/foundation.min.js"></script>
<!-- or individually -->
<script src="/js/foundation.js"></script>
<script src="/js/foundation.alert.js"></script>
<!-- ... -->
<script src="/js/foundation.dropdown.js"></script>
<script src="/js/foundation.tab.js"></script>
How do I embed a Google Docs chart in a Joomla 2.5 custom HTML module? When I publish a chart and receive the "script" I paste it into a module and then the editor seems to strip the code out. I have tried 4 different editors and also "no editor" and it still modifies the script. Can someone help?
Google Docs offers an undocumented feature that lets you embed PDF files and PowerPoint presentations in a web page. The files don't have to be uploaded to Google Docs, but they need to be available online.
Here's the code I used to embed the PDF file:
<iframe src="http://docs.google.com/gview?url=http://www.uom.mx/programas/Kinam%20programa.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
but you should replace the bold URL with your own address. As I mentioned, the document viewer works for PDF and PPT files.
I wanted to add a +1 button on every post in my website. How do I do that? Any resources? I am also looking for Twitter's Tweet and Facebook's Like. Or Django does not handle that?
Check out the documents for Google Plus, it looks pretty straight forward:
The simplest way to include a +1 button on your page is by just
including the necessary JavaScript and adding a +1 button tag:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone></g:plusone>
Somebody know how use OpenX (php app) with Django? I need to use OpenX or a similar software for displaying ads.
As Tomsky answered you don't need any special software just to display ads - you can just use javascript.
However, if you want to access the server and manipulate the OpenX objects such as campaigns, banners, advertisers, etc, you will need some kind of remote API. For that OpenX Source provides a XML-RPC API but I also developed a REST API:
http://www.openxrest.com
You can implement Openx using javascript, so as long as you run Openx on a php server, that should be easy.
Header, something like this:
<script type='text/javascript' src='http://something.here/delivery/spcjs.php?id=1&block=1'></script>
And then, something like this where you want to put you ad.
<script type='text/javascript'>
OA_show(1);
</script>
<noscript>
<a target='_blank' href='http://something.here/delivery/ck.php?n=112bda3'>
<img border='0' alt='' src='http://something.here/delivery/avw.php?zoneid=1&n=112bda3' /></a>
</noscript>
OpenX generates all this code for you.
Here's a project that gives you API integration. If you only want to serve ads, you don't need it though, you just have to paste the javascript provided by OpenX.