Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pypy.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PyPy
pypy.org
Commits
928413d4
Commit
928413d4
authored
13 years ago
by
Maciej Fijalkowski
Browse files
Options
Downloads
Patches
Plain Diff
html/js abomination
parent
ccaa5c2d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
donate1.html
+1
-0
1 addition, 0 deletions
donate1.html
donate2.html
+1
-0
1 addition, 0 deletions
donate2.html
donate3.html
+61
-0
61 additions, 0 deletions
donate3.html
js/script.js
+7
-1
7 additions, 1 deletion
js/script.js
with
70 additions
and
1 deletion
donate1.html
+
1
−
0
View file @
928413d4
...
...
@@ -2,6 +2,7 @@
<li>
<a
href=
"#"
onclick=
"py3k_donate(); return false;"
><b>
Donate towards py3k in pypy
</b></a><br/>
<a
href=
"#"
onclick=
"general_donate(); return false;"
>
Donate towards general pypy progress
</a><br/>
<a
href=
"#"
onclick=
"numpy_donate(); return false;"
>
Donate towards NumPy in pypy
</a><br/>
</li>
<li>
<script>
...
...
This diff is collapsed.
Click to expand it.
donate2.html
+
1
−
0
View file @
928413d4
...
...
@@ -2,6 +2,7 @@
<li>
<a
href=
"#"
onclick=
"py3k_donate(); return false;"
>
Donate towards py3k in pypy
</a><br/>
<a
href=
"#"
onclick=
"general_donate(); return false;"
><b>
Donate towards general pypy progress
</b></a><br/>
<a
href=
"#"
onclick=
"numpy_donate(); return false;"
>
Donate towards NumPy in pypy
</a><br/>
</li>
<li>
<span
id=
"donate_text"
>
This donation will go towards general PyPy progress
...
...
This diff is collapsed.
Click to expand it.
donate3.html
0 → 100644
+
61
−
0
View file @
928413d4
<ul>
<li>
<a
href=
"#"
onclick=
"py3k_donate(); return false;"
>
Donate towards py3k in pypy
</a><br/>
<a
href=
"#"
onclick=
"general_donate(); return false;"
>
Donate towards general pypy progress
</a><br/>
<a
href=
"#"
onclick=
"numpy_donate(); return false;"
><b>
Donate towards NumPy in pypy
</b></a><br/>
</li>
<li>
<span
id=
"donate_text"
>
This donation will go towards supporting NumPy in PyPy
<a
href=
"numpydonate.html"
>
Read proposal
</a>
</li>
<li>
<div
class=
"sidepic"
>
<form
action=
"https://www.paypal.com/cgi-bin/webscr"
method=
"post"
>
<input
type=
"hidden"
name=
"cmd"
value=
"_s-xclick"
>
<input
type=
"hidden"
name=
"hosted_button_id"
value=
"7SMJUEAP83RFQ"
>
<input
type=
"image"
src=
"https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"
border=
"0"
name=
"submit"
alt=
"PayPal - The safer, easier way to pay online!"
>
<img
alt=
""
border=
"0"
src=
"https://www.paypalobjects.com/en_US/i/scr/pixel.gif"
width=
"1"
height=
"1"
>
</form>
</div>
</li>
<li>
<div
class=
"sidepic"
>
<script
type=
"text/javascript"
>
function
validateAmount
(
amount
){
if
(
amount
.
value
.
match
(
/^
[
0-9
]
+
(\.([
0-9
]
+
))?
$/
)){
return
true
;
}
else
{
alert
(
'
You must enter a valid donation.
'
);
amount
.
focus
();
return
false
;
}
}
</script>
<form
action=
"https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm"
id=
"BB_BuyButtonForm"
method=
"post"
name=
"BB_BuyButtonForm"
onSubmit=
"return validateAmount(this.item_price_1)"
target=
"_top"
>
<input
name=
"item_name_1"
type=
"hidden"
value=
"Directed Donation for PyPy's Numpy project"
/>
<input
name=
"item_description_1"
type=
"hidden"
value=
"Donation to Software Freedom Conservancy directed for PyPy's Numpy project: http://pypy.org/numpydonate.html"
/>
<input
name=
"item_quantity_1"
type=
"hidden"
value=
"1"
/>
<input
name=
"item_currency_1"
type=
"hidden"
value=
"USD"
/>
<input
name=
"item_is_modifiable_1"
type=
"hidden"
value=
"true"
/>
<input
name=
"item_min_price_1"
type=
"hidden"
value=
"10.0"
/>
<input
name=
"item_max_price_1"
type=
"hidden"
value=
"25000.0"
/>
<input
name=
"_charset_"
type=
"hidden"
value=
"utf-8"
/>
<table
cellpadding=
"5"
cellspacing=
"0"
width=
"1%"
>
<tr>
<td
align=
"right"
nowrap=
"nowrap"
width=
"1%"
>
$
<input
id=
"item_price_1"
name=
"item_price_1"
onfocus=
"this.style.color='black'; this.value='';"
size=
"11"
style=
"color:grey;"
type=
"text"
value=
"Enter Amount"
/>
</td>
<td
align=
"left"
width=
"1%"
>
<input
alt=
"Donate"
src=
"https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US"
type=
"image"
/>
</td>
</tr>
</table>
</form>
</div>
</li>
<li>
<div
class=
"sidepic"
>
<a
id=
"main_download"
href=
"download.html"
>
Download PyPy
</a>
</div>
</li>
</ul>
This diff is collapsed.
Click to expand it.
js/script.js
+
7
−
1
View file @
928413d4
...
...
@@ -11,4 +11,10 @@
});
}
function
numpy_donate
()
{
$
.
get
(
"
donate3.html
"
,
function
(
html
)
{
$
(
"
#sidebar
"
).
html
(
html
);
});
}
$
(
document
).
ready
(
function
()
{
...
...
@@ -14,3 +20,3 @@
$
(
document
).
ready
(
function
()
{
py
3k
_donate
();
num
py_donate
();
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment