<?php
namespace DrupalReleaseDate\Controllers;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;

class Charts
{

    public function samples(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/samples.twig', array(
            'scripts' => array(
                'http://code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }

    public function estimates(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/estimates.twig', array(
            'scripts' => array(
                'http://code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }

    public function distribution(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/distribution.twig', array(
            'scripts' => array(
                'http://code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }
}

<?php
namespace DrupalReleaseDate\Controllers;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;

class Charts
{

    public function samples(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/samples.twig', array(
            'scripts' => array(
                '//code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }

    public function estimates(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/estimates.twig', array(
            'scripts' => array(
                '//code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }

    public function distribution(Application $app, Request $request)
    {
        return $app['twig']->render('graphs/distribution.twig', array(
            'scripts' => array(
                '//code.jquery.com/jquery-2.0.2.min.js',
                'https://www.google.com/jsapi',
            ),
        ));
    }
}

Use protocol relative URLs for jQuery CDN to avoid mixed-content errors
Use protocol relative URLs for jQuery CDN to avoid mixed-content errors
