Browse Source

latest new events I agree script worked.

master
Patrick Peng Sun 8 years ago
parent
commit
cc6557a7f9
46 changed files with 6219 additions and 5829 deletions
  1. +32
    -31
      customMenu.go
  2. +30
    -1
      spa/assets/js/spa.js
  3. +21
    -0
      spa/materialize/LICENSE
  4. +43
    -0
      spa/materialize/README.md
  5. +2203
    -4173
      spa/materialize/css/materialize.css
  6. +5
    -5
      spa/materialize/css/materialize.min.css
  7. BIN
      spa/materialize/font/roboto/Roboto-Bold.eot
  8. BIN
      spa/materialize/font/roboto/Roboto-Bold.ttf
  9. BIN
      spa/materialize/font/roboto/Roboto-Bold.woff
  10. BIN
      spa/materialize/font/roboto/Roboto-Bold.woff2
  11. BIN
      spa/materialize/font/roboto/Roboto-Light.eot
  12. BIN
      spa/materialize/font/roboto/Roboto-Light.ttf
  13. BIN
      spa/materialize/font/roboto/Roboto-Light.woff
  14. BIN
      spa/materialize/font/roboto/Roboto-Light.woff2
  15. BIN
      spa/materialize/font/roboto/Roboto-Medium.eot
  16. BIN
      spa/materialize/font/roboto/Roboto-Medium.ttf
  17. BIN
      spa/materialize/font/roboto/Roboto-Medium.woff
  18. BIN
      spa/materialize/font/roboto/Roboto-Medium.woff2
  19. BIN
      spa/materialize/font/roboto/Roboto-Regular.eot
  20. BIN
      spa/materialize/font/roboto/Roboto-Regular.ttf
  21. BIN
      spa/materialize/font/roboto/Roboto-Regular.woff
  22. BIN
      spa/materialize/font/roboto/Roboto-Regular.woff2
  23. BIN
      spa/materialize/font/roboto/Roboto-Thin.eot
  24. BIN
      spa/materialize/font/roboto/Roboto-Thin.ttf
  25. BIN
      spa/materialize/font/roboto/Roboto-Thin.woff
  26. BIN
      spa/materialize/font/roboto/Roboto-Thin.woff2
  27. +0
    -0
      spa/materialize/fonts/material-design-icons/LICENSE.txt
  28. +0
    -0
      spa/materialize/fonts/material-design-icons/Material-Design-Icons.eot
  29. +0
    -0
      spa/materialize/fonts/material-design-icons/Material-Design-Icons.svg
  30. +0
    -0
      spa/materialize/fonts/material-design-icons/Material-Design-Icons.ttf
  31. +0
    -0
      spa/materialize/fonts/material-design-icons/Material-Design-Icons.woff
  32. +0
    -0
      spa/materialize/fonts/material-design-icons/Material-Design-Icons.woff2
  33. BIN
      spa/materialize/fonts/roboto/Roboto-Bold.woff
  34. BIN
      spa/materialize/fonts/roboto/Roboto-Bold.woff2
  35. BIN
      spa/materialize/fonts/roboto/Roboto-Light.woff
  36. BIN
      spa/materialize/fonts/roboto/Roboto-Light.woff2
  37. BIN
      spa/materialize/fonts/roboto/Roboto-Medium.woff
  38. BIN
      spa/materialize/fonts/roboto/Roboto-Medium.woff2
  39. BIN
      spa/materialize/fonts/roboto/Roboto-Regular.woff
  40. BIN
      spa/materialize/fonts/roboto/Roboto-Regular.woff2
  41. BIN
      spa/materialize/fonts/roboto/Roboto-Thin.woff
  42. BIN
      spa/materialize/fonts/roboto/Roboto-Thin.woff2
  43. +3821
    -1606
      spa/materialize/js/materialize.js
  44. +3
    -7
      spa/materialize/js/materialize.min.js
  45. +60
    -5
      spa/newevent.html
  46. +1
    -1
      spa/pinegrow.json

+ 32
- 31
customMenu.go View File

@@ -72,41 +72,42 @@ var menu = []byte(`
"name":"即将举办的活动",
"key":"EVENTS_UPCOMING"
}]
},
{
"name":"职业发展",
"sub_button":[
{
"type":"click",
"name":"澳洲工作机会",
"key": "CAREERDEV_JOBS"
},
{
"type":"click",
"name":"融入澳洲社区",
"key": "CAREERDEV_INDUSTRY"
},
{
"type":"click",
"name":"OutReach Program",
"key": "CAREERDEV_OUTREACH"
},
{
"type":"click",
"name":"母校/国内纽带",
"key": "CAREERDEV_HIT"
},
{
"type":"click",
"name":"校友互助信息",
"key":"CAREERDEV_HELP"
}]
}
}
]
}
`)

// ,
// {
// "name":"职业发展",
// "sub_button":[
// {
// "type":"click",
// "name":"澳洲工作机会",
// "key": "CAREERDEV_JOBS"
// },
// {
// "type":"click",
// "name":"融入澳洲社区",
// "key": "CAREERDEV_INDUSTRY"
// },
// {
// "type":"click",
// "name":"OutReach Program",
// "key": "CAREERDEV_OUTREACH"
// },
// {
// "type":"click",
// "name":"母校/国内纽带",
// "key": "CAREERDEV_HIT"
// },

// {
// "type":"click",
// "name":"校友互助信息",
// "key":"CAREERDEV_HELP"
// }]
// }
//CreateCustomMenu bulid a menu for wechat windows
// 3 main manu max (< 4 mandarin words)
// 5 sub items max (< 7 mandarin words)

+ 30
- 1
spa/assets/js/spa.js View File

@@ -33,4 +33,33 @@ function closeWechatBrowser(){
$(document).on("WeixinJSBridgeReady", function(){
WeixinJSBridge.call('closeWindow');
});
}
}

$(function() {
console.log("ready");
$('.datepicker').pickadate({
format: 'mm/dd/yyyy',
selectMonths: true, // Creates a dropdown to control month
});

$('.timepicker').pickatime({
default: 'now', // Set default time
fromnow: 0, // set default time to * milliseconds from now (using with default = 'now')
twelvehour: false, // Use AM/PM or 24-hour format
donetext: 'OK', // text for done-button
cleartext: 'Clear', // text for clear-button
canceltext: 'Cancel', // Text for cancel-button
autoclose: false, // automatic close timepicker
ampmclickable: true, // make AM PM clickable
aftershow: function(){} //Function for after opening timepicker
});
});

$("form").submit(function(event){
if ( $(this).find("input.Iagree").is(":checked") == false) {
alert("发起活动之前,请选择同意主办方须知");
event.preventDefault();
}
});

+ 21
- 0
spa/materialize/LICENSE View File

@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014-2017 Materialize

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

+ 43
- 0
spa/materialize/README.md View File

@@ -0,0 +1,43 @@
![Materialize logo](https://raw.github.com/dogfalo/materialize/master/images/materialize.gif)
===========

[![Travis CI badge](https://travis-ci.org/Dogfalo/materialize.svg?branch=master)](https://travis-ci.org/Dogfalo/materialize)
[![npm version badge](https://badge.fury.io/js/materialize-css.svg)](https://badge.fury.io/js/materialize-css)
[![dependencies Status badge](https://david-dm.org/Dogfalo/materialize/status.svg)](https://david-dm.org/Dogfalo/materialize)
[![devDependency Status badge](https://david-dm.org/Dogfalo/materialize/dev-status.svg)](https://david-dm.org/Dogfalo/materialize#info=devDependencies)
[![Gitter badge](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Dogfalo/materialize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[Materialize](http://materializecss.com/), a CSS Framework based on material design

### Current Version : v0.99.0

## Sass Requirements:
- Ruby Sass 3.3+, LibSass 0.6+

## Supported Browsers:
Chrome 35+, Firefox 31+, Safari 7+, IE 10+

## Quickstart:
Read the [Getting started page](http://materializecss.com/getting-started.html) for more information about the framework, templates and how to use materialize can be found on the [materializecss website](http://materializecss.com)

- [Download the latest release](https://github.com/Dogfalo/materialize/releases/latest) directly from GitHub
- Clone the repo: `git clone https://github.com/Dogfalo/materialize.git`
- Include the files via [cdnjs](https://cdnjs.com/libraries/materialize). More [here](http://materializecss.com/getting-started.html)
- Install with [npm](https://www.npmjs.com): `npm install materialize-css`
- Install with [Bower](https://bower.io): `bower install materialize`

## Compiling Files
- `npm install`
- `grunt monitor`, this will compile .scss, .js., .jade files.

## Changelog
For changelogs, check out [the Releases section of materialize](https://github.com/Dogfalo/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md)

## Testing
We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](https://docs.google.com/document/d/1dVM6qGt_b_y9RRhr9X7oZfFydaJIEqB9CT7yekv-4XE/edit?usp=sharing)

## Contributing
[Please read CONTRIBUTING.md for more information](CONTRIBUTING.md)

## Translation
If you want to help us translate the documentation into other languages, please send us an email at materializeframework@gmail.com telling us which language team you want to join. We use [Transifex](https://www.transifex.com) as our localization platform and we will send you an invite there.

+ 2203
- 4173
spa/materialize/css/materialize.css
File diff suppressed because it is too large
View File


+ 5
- 5
spa/materialize/css/materialize.min.css
File diff suppressed because it is too large
View File


BIN
spa/materialize/font/roboto/Roboto-Bold.eot View File


BIN
spa/materialize/font/roboto/Roboto-Bold.ttf View File


BIN
spa/materialize/font/roboto/Roboto-Bold.woff View File


BIN
spa/materialize/font/roboto/Roboto-Bold.woff2 View File


BIN
spa/materialize/font/roboto/Roboto-Light.eot View File


BIN
spa/materialize/font/roboto/Roboto-Light.ttf View File


BIN
spa/materialize/font/roboto/Roboto-Light.woff View File


BIN
spa/materialize/font/roboto/Roboto-Light.woff2 View File


BIN
spa/materialize/font/roboto/Roboto-Medium.eot View File


BIN
spa/materialize/font/roboto/Roboto-Medium.ttf View File


BIN
spa/materialize/font/roboto/Roboto-Medium.woff View File


BIN
spa/materialize/font/roboto/Roboto-Medium.woff2 View File


BIN
spa/materialize/font/roboto/Roboto-Regular.eot View File


BIN
spa/materialize/font/roboto/Roboto-Regular.ttf View File


BIN
spa/materialize/font/roboto/Roboto-Regular.woff View File


BIN
spa/materialize/font/roboto/Roboto-Regular.woff2 View File


BIN
spa/materialize/font/roboto/Roboto-Thin.eot View File


BIN
spa/materialize/font/roboto/Roboto-Thin.ttf View File


BIN
spa/materialize/font/roboto/Roboto-Thin.woff View File


BIN
spa/materialize/font/roboto/Roboto-Thin.woff2 View File


spa/materialize/font/material-design-icons/LICENSE.txt → spa/materialize/fonts/material-design-icons/LICENSE.txt View File


spa/materialize/font/material-design-icons/Material-Design-Icons.eot → spa/materialize/fonts/material-design-icons/Material-Design-Icons.eot View File


spa/materialize/font/material-design-icons/Material-Design-Icons.svg → spa/materialize/fonts/material-design-icons/Material-Design-Icons.svg View File


spa/materialize/font/material-design-icons/Material-Design-Icons.ttf → spa/materialize/fonts/material-design-icons/Material-Design-Icons.ttf View File


spa/materialize/font/material-design-icons/Material-Design-Icons.woff → spa/materialize/fonts/material-design-icons/Material-Design-Icons.woff View File


spa/materialize/font/material-design-icons/Material-Design-Icons.woff2 → spa/materialize/fonts/material-design-icons/Material-Design-Icons.woff2 View File


BIN
spa/materialize/fonts/roboto/Roboto-Bold.woff View File


BIN
spa/materialize/fonts/roboto/Roboto-Bold.woff2 View File


BIN
spa/materialize/fonts/roboto/Roboto-Light.woff View File


BIN
spa/materialize/fonts/roboto/Roboto-Light.woff2 View File


BIN
spa/materialize/fonts/roboto/Roboto-Medium.woff View File


BIN
spa/materialize/fonts/roboto/Roboto-Medium.woff2 View File


BIN
spa/materialize/fonts/roboto/Roboto-Regular.woff View File


BIN
spa/materialize/fonts/roboto/Roboto-Regular.woff2 View File


BIN
spa/materialize/fonts/roboto/Roboto-Thin.woff View File


BIN
spa/materialize/fonts/roboto/Roboto-Thin.woff2 View File


+ 3821
- 1606
spa/materialize/js/materialize.js
File diff suppressed because it is too large
View File


+ 3
- 7
spa/materialize/js/materialize.min.js
File diff suppressed because it is too large
View File


+ 60
- 5
spa/newevent.html View File

@@ -13,6 +13,7 @@
<title>发起新活动</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Materialize core CSS -->
<link href="materialize.0.97.5/css/materialize.css" rel="stylesheet">
<link href="materialize/css/materialize.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
@@ -23,9 +24,9 @@
</head>
<body>
<div class="row valign center">
<h3 class="flow-text truncate accent-1 waves-effect">校友会活动信息</h3>
<h3 class="flow-text truncate accent-1 waves-effect">发起校友会活动</h3>
</div>
<form method="post" enctype="multipart/form-data">
<form method="post" enctype="multipart/form-data" action="http://192.168.1.39:65500/dumprequest" class="Iagree">
<div class="row">
<div class="input-field col s12">
<i class="mdi-action-loyalty small prefix"></i>
@@ -36,7 +37,7 @@
<div class="row">
<div class="input-field col s12">
<i class="mdi-action-list small prefix"></i>
<textarea id="description" class="materialize-textarea"></textarea>
<textarea id="description" name="description" class="materialize-textarea"></textarea>
<label for="description">
活动描述 200字左右
</label>
@@ -46,7 +47,7 @@
<div class="col s12 ">
<div class="file-field input-field">
<div class="btn">
<span>封面图片</span>
<span>封面图片(选填)</span>
<input type="file" class="uploadimg" id="cover" name="cover" prev>
</div>
<div class="file-path-wrapper">
@@ -63,8 +64,62 @@
</div>
<div class="row">
</div>
<input type="submit" class="btn waves-effect waves-light orange fullwidth" value="发起活动">
<div class="row">
<div class="input-field col s12 m6">
<i class="small prefix mdi-action-today"></i>
<input name="startdate" id="startdate" type="text" class="datepicker">
<label for="startdate"> 活动日期 </label>
</div>
<div class="input-field col s6 m3">
<i class="small prefix mdi-action-query-builder"></i>
<input name="starthour" id="starthour" type="text" class="timepicker">
<label for="starthour"> 开始时间(23:59) </label>
</div>
<div class="input-field col s6 m3">
<i class="small prefix mdi-av-timer"></i>
<input name="duration" id="duration" type="text" class="timepicker">
<label for="duration"> 持续时间(01:30) </label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<i class="small prefix mdi-maps-place"></i>
<input name="venue" id="venue" type="text" class="validate">
<label for="venue"> 举办地点/场所 </label>
</div>
<div class="col s12 m12 l12">
<b>主办方须知</b>
<p>活动内容将上报校友会组站机构,审核通过后。校友会全体在册人员将收到你的活动邀请,自行选择参加或拒绝。</p>
<p>主办者将收到具体的人数更新,以及本次活动签到用的二维码。</p>
<p>所有当天参加活动的校友,通过公众号扫码即可签到</p>
<p class="valign right"></p>
</div>
</div>
<div class="row">
<div class="col s6 ">
<div class="switch">
<label>
<input type="checkbox" class="Iagree" name="agree">
<span class="lever"></span>我同意
</label>
</div>
</div>
<div class="col s6">
<input type="submit" class="btn waves-effect waves-light orange fullwidth" value="发起活动">
</div>
</div>
</form>
<footer class="page-footer white">
<div class="container">
<div class="row footerfill">
</div>
</div>
<div class="footer-copyright">
<div class="container">© 2010-2017 Copyright Biukop
<a class="grey-text text-lighten-4 right" href="#!"></a>
</div>
</div>
</footer>
<!-- Materialize core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.min.js"></script>

+ 1
- 1
spa/pinegrow.json View File

@@ -1 +1 @@
{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"livecast.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newEvents.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newevent.html":{"frameworks":["spa","userlib7784","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","userlib7784","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"}
{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"livecast.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newEvents.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024},"newevent.html":{"frameworks":["spa","pg.insight.events","pg.asset.manager","pg.code-validator","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.asset.manager","pg.code-validator","pg.project.items","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"}

Loading…
Cancel
Save