All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.angular-controllers.js Maven / Gradle / Ivy

Go to download

Standalone HTML/JS view to navigate through the cross-referenced results of the stories

The newest version!
'use strict';

/* Controllers */

function StoriesController($scope, $http) {
  $http.get('xref.json').success(function(data) {
    $scope.data = data;
  });

  $scope.predicate = '';
  
  $scope.showStory = function(storyPath) {
	    var url = storyPath;
	    url = url.replace(/\//g, '.');
	    url = url.replace(".story",".html");
	    console.log("Showing story: "+url)	  
	    jQuery.FrameDialog.create({
	        width: 1000,
	        height: 600,
	        closeText: 'foo',
	        url: url,
	        title: storyPath,
	        closeOnEscape: true,
	        buttons: [
	            {
	            }
	        ]
	    });
  };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy