Skip to content

Instantly share code, notes, and snippets.

View jjvillavicencio's full-sized avatar

John Villavicencio jjvillavicencio

View GitHub Profile
{% extends "index.html" %}
{% block header %}
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
{%extends "index.html"%}
{%block header%}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style type="text/css">
${demo.css}
</style>
<script type="text/javascript">
$(function () {
$('#container').highcharts({
.service('srvGaleria',['$http',function($http){
this.servicioGaleria = function (parametro,tipo){
// parametro=parametro.replace(" ","%20");
console.log('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
return $http.get('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
};
}])