This repository was archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 604
Expand file tree
/
Copy pathopen-source-project-request.html
More file actions
167 lines (143 loc) · 6.04 KB
/
open-source-project-request.html
File metadata and controls
167 lines (143 loc) · 6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
---
layout: default
title: Apply for Koding Credits
---
<!-- HEADER -->
{% include header.html has_sticky_navigation='true' exclude_main_nav='true' background_color='transparent' %}
<style>{% include css/applyforms.css %}</style>
<main class="ApplyForm">
<div class="ApplyForm--header">
<div class="ApplyForm--container">
<div class="form-instructions">
<h1>Apply for Koding Credits</h1>
<h3>If your project is open source, Koding is free to use. If you are a fledgeling startup or a CS class, we'd love to help! Please fill out this form, so we can properly qualify your request.</h3>
<hr />
<h3>You can find the Koding badges <a href="{{site.url}}/badges" target="_blank">here</a>. You can make the logo smaller, but keep the proportions intact.</h3>
</div>
<h3 class="form-success hidden">
Thank you. Your response has been recorded!
<br><br>
<a href="{{ site.url }}">Go back to homepage</a>
</h3>
</div>
</div>
<div class="ApplyForm--body">
<form id="SignupForm" novalidate data-persist="garlic" data-domain="true" class="ApplyForm--container">
<h3>Which option describes you best?</h3>
<div class="SignupFieldset">
<div class="checkboxRow">
<input type="radio" name="Field9" id="non-profit" value="non-profit">
<label for="non-profit">Non-profit, open source project (eligible for a free account, with a badge on your readme.md )</label>
<div class="clearfix"></div>
</div>
<div class="checkboxRow">
<input type="radio" name="Field9" id="startup" value="startup">
<label for="startup">Small startup, pre-funding, pre-revenue (Eligible for up to $400 credit with a badge on the homepage)</label>
<div class="clearfix"></div>
</div>
<div class="checkboxRow">
<input type="radio" name="Field9" id="education" value="education">
<label for="education">Education, classroom (Eligible for $400 credit)</label>
<div class="clearfix"></div>
</div>
</div>
<div class="SignupFieldset">
<label>If Open Source, project repository URL with Koding badge *</label>
<input type="text" name="Field1">
</div>
<div class="SignupFieldset">
<label>If Startup, company landing page URL with Koding badge *</label>
<input type="text" name="Field2">
</div>
<div class="SignupFieldset">
<label>If Education, your school and class *</label>
<input type="text" name="Field3">
</div>
<div class="SignupFieldset">
<label>Your email *</label>
<input type="text" name="Field4">
<div class="errorTooltip fadeOut">Required</div>
</div>
<div class="SignupFieldset">
<label>Your Koding Username *</label>
<input type="text" name="Field5">
<div class="errorTooltip fadeOut">Required</div>
</div>
<div class="SignupFieldset">
<label>Your Koding Team *</label>
<input type="text" name="Field6">
<div class="errorTooltip fadeOut">Required</div>
</div>
<div class="SignupFieldset">
<label>URL for your Koding Stack for your project (you can copy/paste this to a gist or push it back to your repository)</label>
<input type="text" name="Field7">
</div>
<div class="SignupFieldset">
<label>Can you tell us why you would like to use Koding? How does it help you?</label>
<input type="text" name="Field10">
</div>
<h3>Would you like to write a 2000+ words Medium article about your experience and how Koding helps you for an additional $400 credit?</h3>
<div class="SignupFieldset">
<div class="checkboxRow">
<input type="radio" name="Field12" id="yes" value="yes">
<label for="yes">Yes</label>
<div class="clearfix"></div>
</div>
<div class="checkboxRow clearfix">
<input type="radio" name="Field12" id="later" value="later">
<label for="later">Maybe later</label>
<div class="clearfix"></div>
</div>
</div>
<div class="SignupFieldset">
<div class="submit">
<button type="submit">SUBMIT</button>
</div>
</div>
</form>
</div>
</main>
<script>{% include js/autosize.min.js %}</script>
<script>{% include js/jquery.pwstrength.min.js %}</script>
<script>{% include js/garlic.min.js %}</script>
<script type="text/javascript" src="{{ site.url }}/js/create-team-base.js" /></script>
<script type="text/javascript" src="{{ site.url }}/js/create-team-errors.js" /></script>
<script type="text/javascript" src="{{ site.url }}/js/create-team-validators.js" /></script>
<script type="text/javascript" src="{{ site.url }}/js/requests.js" /></script>
<script type="text/javascript" src="{{ site.url }}/js/form-submission.js" /></script>
<script type="text/javascript">
KODING_UTILS.bindFormSubmission({
formSelector: '#SignupForm',
formHash: 'x12ibg5p0qpnd8p',
success: function() {
$('.Micropage--container > h1').text('Awesome!');
$('.form-instructions').addClass('hidden');
$('.form-success').removeClass('hidden');
$('#SignupForm').hide();
},
error: function(arg) {
var FieldErrors, e, err, i, len, responseText, results;
responseText = arg.responseText;
try {
responseText = JSON.parse(responseText);
} catch (_error) {
e = _error;
console.log('couldn\'t parse the response');
}
if (responseText) {
FieldErrors = responseText.FieldErrors;
results = [];
$("input[type=text]").removeClass('error');
$(".errorTooltip").addClass('fadeOut');
for (i = 0, len = FieldErrors.length; i < len; i++) {
err = FieldErrors[i];
var inputField = $("input[name=" + err.ID + "]");
results.push(inputField.addClass('error'));
inputField.siblings('.errorTooltip').removeClass('fadeOut');
}
return results;
}
}
});
</script>
{% include analytics.html %}