Sha256: ed73865be7ce24a66f7d58cc812d3c8a1a165815c54c814df656cefb31d71c6d
Contents?: true
Size: 921 Bytes
Versions: 3
Compression:
Stored size: 921 Bytes
Contents
'use strict'; angular.module('apiDocoApp') .controller('DocumentationController', ['$scope', '$window', function ($scope, $window) { $scope.navigateToCurrentVersion = function (versionName) { var version = $scope.documentationVersions.filter(function(v) { return v.name === versionName; })[0]; $window.location.href = version.path; }; $scope.viewRaw = function(data) { var dataStingified = JSON.stringify(data, null, 2); var x = window.open(); x.document.open(); x.document.write('<html><body><pre>' + dataStingified + '</pre></body></html>'); x.document.close(); }; $scope.initMenuToggle = function() { $(document).ready(function () { $("#menu-toggle").click(function(e) { e.preventDefault(); $("#wrapper").toggleClass("toggled"); }); }); }; $scope.init = function () { $scope.initMenuToggle(); }; $scope.init(); }]);
Version data entries
3 entries across 3 versions & 1 rubygems