This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var StoryFormSchema = { // Backbone.Form will generate an HTML form based on this schema | |
Name: { validators: ['required'] }, // Name is required | |
Description: 'TextArea', // Since these next three are not required, we only need the data type | |
Benefits: 'TextArea', | |
Estimate: 'Number', | |
RequestedBy: {} // Defaults to 'Text' | |
}; | |
var storyForm = null; // Instance of the schema declared above, created when we click 'Load Story' | |
var urlRoot = 'http://eval.versionone.net/platformtest/rest-1.v1/Data/Story/'; // V1 API URL base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Tutorial Story", | |
"Description": "Great description", | |
"Estimate": "5" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="error"> | |
<h1>Error During AJAX Call:</h1> | |
<br /> | |
<hr /> | |
<br /> | |
<p id="errorMessage"> | |
</p> | |
</div> | |
<div id="success"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<title>Barebones Story Editor</title> | |
</head> | |
<body> | |
<h1>Barebones Story Editor</h1><br> | |
<label for="StoryId">Enter a Story ID:</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
var storyId = ''; | |
$("#storyGet").click(function (e) { | |
storyId = $('#StoryId').val(); | |
if (storyId == '') { | |
return; | |
} | |
var storyUrl = url + storyId + select | |
$.ajax({ | |
url: storyUrl, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Backbone-Fortified VersionOne Story Editor</title> | |
</head> | |
<body> | |
<h1>Backbone-Fortified VersionOne Story Editor</h1> | |
<div id="editor"> | |
<form id="editorForm"> | |
<h4>Story Details</h4> | |
<hr /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Story.Name": { | |
"_type": "AttributeDefinition", | |
"Name": "Name", | |
"Token": "Story.Name", | |
"DisplayName": "AttributeDefinition'Name'Story", | |
"AttributeType": "Text", | |
"IsReadOnly": false, | |
"IsRequired": true, | |
"IsMultivalue": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define ['../modules/outputBuilder'], (outputBuilder) -> | |
name:'ConfidenceInterval', | |
group:'Continuous Variables', | |
title: 'Confidence Interval', | |
titleShort: 'Median / %ile CI', | |
summary: 'Confidence Interval of median or other percentile for a sample size', | |
description: "This module calculates confidence interval around a selected percentile for | |
a sample size given. Entering sample size and desired percentile will calculate | |
95% confidence interval as a default confidence limit. The user can change the | |
confidence interval by typing in new value. Please note that the selected percentile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadMeta = (callback) -> | |
formSchema = {} | |
attributes = getSelectedAttributesNames() | |
$.ajax(metaUrl).done (data) -> | |
titleRequests = [] | |
attributeNames = _.map(attributes, (fieldName) -> | |
"Story." + fieldName | |
) | |
attribs = _.pick(data.Attributes, attributeNames) | |
_.each attribs, (item, index) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Seriously, this is it: --> | |
<html> | |
<body></body> | |
</html> |
OlderNewer