API & Docs

Developer API & Docs

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto, assumenda autem consequatur cum dignissimos dolores doloribus eius eum iusto laborum quasi quidem sapiente sit.

  1. $("#register-form").validate({
  2. rules: {
  3. username: {
  4. required: true,
  5. minLength: 2,
  6. remote: "register.php"
  7. }
  8. },
  9. messages: {
  10. username: {
  11. required: "Enter your username",
  12. minLength: "At least 2 characters are necessary",
  13. remote: String.format("The name {0} is already in use")
  14. }
  15. }
  16. });
  1. <header class="main-header">
  2. ...
  3. </header>
  4.  
  5. <div class="main-body">
  6. <nav class="side-nav">
  7. ...
  8. </div>
  9.  
  10. <main>
  11. ...
  12. </main>
  13.  
  14. <aside class="quick-view">
  15. ...
  16. </div>
  17. </div>
  18.  
  19. <footer class="main-footer">
  20. ...
  21. </footer>
  1. var gulp = require('gulp');
  2. var sass = require('gulp-sass');
  3. var autoprefixer = require('gulp-autoprefixer');
  4.  
  5. gulp.task('sass', function () {
  6. return gulp
  7. .src('../sass/*.scss')
  8. .pipe(sass({
  9. includePaths: ['./bower_components']
  10. }))
  11. .pipe(autoprefixer({
  12. browsers: ['last 2 version', '> 5%']
  13. }))
  14. .pipe(gulp.dest('./css'));
  15. });
  16.  
  17. gulp.task('default', ['scss']);
  1. var apiUrl = 'https://api.5studios.net/';
  2.  
  3. this.getLoggedUser = function() {
  4. return $.ajax({
  5. url: apiUrl + 'user/login?inc=name,location,email,picture',
  6. dataType: 'json'
  7. });
  8. };
  9.  
  10. this.getPendingTasks = function () {
  11. return $.getJSON(apiUrl + 'data/tasks/pending', function() {
  12. console.log("Tasks loaded");
  13. });
  14. };
  1. $("#register-form").validate({
  2. rules: {
  3. username: {
  4. required: true,
  5. minLength: 2,
  6. remote: "register.php"
  7. }
  8. },
  9. messages: {
  10. username: {
  11. required: "Enter your username",
  12. minLength: "At least 2 characters are necessary",
  13. remote: String.format("The name {0} is already in use")
  14. }
  15. }
  16. });
  1. <header class="main-header">
  2. ...
  3. </header>
  4.  
  5. <div class="main-body">
  6. <nav class="side-nav">
  7. ...
  8. </div>
  9.  
  10. <main>
  11. ...
  12. </main>
  13.  
  14. <aside class="quick-view">
  15. ...
  16. </div>
  17. </div>
  18.  
  19. <footer class="main-footer">
  20. ...
  21. </footer>