summaryrefslogtreecommitdiffhomepage
path: root/common/js
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-20 19:30:36 +0200
committerRay <[email protected]>2019-05-20 19:30:36 +0200
commit6bf76c25c8e83b702a1e6b3aa212a12256269eaf (patch)
tree5b37dc7986fd642eaa3be9b7c41083c059be5967 /common/js
parent7c081e23acd3bd6a73fe5765708aaba26bb9c482 (diff)
downloadraylib.com-6bf76c25c8e83b702a1e6b3aa212a12256269eaf.tar.gz
raylib.com-6bf76c25c8e83b702a1e6b3aa212a12256269eaf.zip
Simplify folders structure
Diffstat (limited to 'common/js')
-rw-r--r--common/js/examples.js127
-rw-r--r--common/js/games.js94
2 files changed, 0 insertions, 221 deletions
diff --git a/common/js/examples.js b/common/js/examples.js
deleted file mode 100644
index b379d6a..0000000
--- a/common/js/examples.js
+++ /dev/null
@@ -1,127 +0,0 @@
-$(document).ready(function() {
-
- // Init fancybox
- $('.fancybox').fancybox();
-
- var exampleName = [
- 'core_basic_window',
- 'core_input_keys',
- 'core_input_mouse',
- 'core_input_mouse_wheel',
- 'core_input_gamepad',
- 'core_input_multitouch',
- 'core_input_gestures',
- 'core_2d_camera',
- 'core_3d_camera_mode',
- 'core_3d_camera_free',
- 'core_3d_camera_first_person',
- 'core_3d_picking',
- 'core_world_screen',
- 'core_custom_logging',
- 'core_window_letterbox',
- 'core_drop_files',
- 'core_random_values',
- 'core_storage_values',
- 'core_vr_simulator',
- 'core_loading_thread',
- 'shapes_basic_shapes',
- 'shapes_bouncing_ball',
- 'shapes_colors_palette',
- 'shapes_logo_raylib',
- 'shapes_logo_raylib_anim',
- 'shapes_rectangle_scaling',
- 'shapes_lines_bezier',
- 'shapes_collision_area',
- 'shapes_following_eyes',
- 'shapes_easings_ball_anim',
- 'shapes_easings_box_anim',
- 'shapes_easings_rectangle_array',
- 'shapes_draw_ring',
- 'shapes_draw_circle_sector',
- 'shapes_draw_rectangle_rounded',
- 'text_raylib_fonts',
- 'text_sprite_fonts',
- 'text_ttf_loading',
- 'text_bmfont_ttf',
- 'text_font_sdf',
- 'text_format_text',
- 'text_input_box',
- 'text_writing_anim',
- 'text_rectangle_bounds',
- 'text_unicode',
- 'textures_logo_raylib',
- 'textures_rectangle',
- 'textures_srcrec_dstrec',
- 'textures_image_drawing',
- 'textures_image_generation',
- 'textures_image_loading',
- 'textures_image_processing',
- 'textures_image_text',
- 'textures_to_image',
- 'textures_raw_data',
- 'textures_particles_blending',
- 'textures_npatch_drawing',
- 'textures_background_scrolling',
- 'textures_sprite_button',
- 'textures_sprite_explosion',
- 'textures_bunnymark',
- 'models_animation',
- 'models_billboard',
- 'models_box_collisions',
- 'models_cubicmap',
- 'models_first_person_maze',
- 'models_geometric_shapes',
- 'models_material_pbr',
- 'models_mesh_generation',
- 'models_mesh_picking',
- 'models_obj_loading',
- 'models_obj_viewer',
- 'models_orthographic_projection',
- 'models_rlgl_solar_system',
- 'models_skybox',
- 'models_yaw_pitch_roll',
- 'models_heightmap',
- 'shaders_model_shader',
- 'shaders_shapes_textures',
- 'shaders_custom_uniform',
- 'shaders_postprocessing',
- 'shaders_palette_switch',
- 'shaders_raymarching',
- 'shaders_texture_drawing',
- 'shaders_texture_waves',
- 'shaders_julia_set',
- 'shaders_eratosthenes',
- 'audio_module_playing',
- 'audio_music_stream',
- 'audio_raw_stream',
- 'audio_sound_loading'];
-
- for (var i = 0; i < exampleName.length; i++)
- {
- var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_"));
- var exampleBase = exampleName[i].slice(exampleName[i].indexOf('_') + 1);
- var exampleDesc = exampleBase.replace('_', ' ');
-
- $('#container').append(
- '<div class="mix f' + filterType + '">' +
- '<a class="fancybox fancybox.iframe" href="examples/web/' + filterType + '/' + 'loader.html?name=' + exampleName[i] + '" title="' + exampleDesc + '">' +
- '<img width="400" height="225" src="../examples/web/' + filterType + '/' + exampleName[i] + '.png"><div class="extext"><p>' + exampleDesc + '</p></div></a>' +
- '</div>');
-
- $('#container a .extext').hide();
- }
-
- // Instantiate MixItUp:
- $('#container').mixItUp();
-
- $("#container a").hover(
- function(){ $(this).find(".extext").show(); },
- function(){ $(this).find(".extext").hide(); });
-
-/*
- $("#container a img").hover(
- function() { $(this).stop().animate({ opacity:0.6 }, 200, "easeOutQuad" ); },
- function() { $(this).stop().animate({ opacity:0 }, 200, "easeOutQuad" ); }
- )
-*/
-}); \ No newline at end of file
diff --git a/common/js/games.js b/common/js/games.js
deleted file mode 100644
index 572ec2c..0000000
--- a/common/js/games.js
+++ /dev/null
@@ -1,94 +0,0 @@
-$(document).ready(function() {
-
- // Init fancybox
- $('.fancybox').fancybox();
-
- var exampleName = [
- 'sample_arkanoid',
- 'sample_missile_commander',
- 'sample_gorilas',
- 'sample_snake',
- 'sample_asteroids',
- 'sample_asteroids_survival',
- 'sample_pang',
- 'sample_space_invaders',
- 'sample_floppy',
- 'sample_tetris',
- 'game_drturtle',
- 'game_just_do',
- 'game_skully_escape',
- 'game_koala_seasons',
- 'game_light_my_ritual',
- 'game_wave_collector',
- 'user_super_red_rope',
- 'user_taptojamp',
- 'user_funwithsat'];
-
- var exampleDesc = [
- 'arkanoid',
- 'missile commander',
- 'gorilas',
- 'snake',
- 'asteroids',
- 'asteroids survival',
- 'pang',
- 'space invaders',
- 'floppy',
- 'tetris',
- 'Dr Turtle & Mr Gamera',
- 'JUST DO',
- 'Skully Escape',
- 'Koala Seasons',
- 'LIGHT MY RITUAL',
- 'Wave Collector',
- 'Super Red Rope Puzzles (Kurnic)',
- 'TapToJAmp (MarcMDE)',
- 'FunWithSATCollisions (MarcMDE)'];
-
- for (var i = 0; i < exampleName.length; i++)
- {
- var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_"));
-
- var linkTag;
-
- if (filterType == 'sample') linkTag = '<a class="fancybox fancybox.iframe" href="games/loader.html?name=' + exampleName[i] + '" title="' + exampleDesc[i] + '">';
- else if (filterType == 'game') linkTag = '<a target="_blank" href="games/' + exampleName[i].substring(5) + '.html" title="' + exampleDesc[i] + '">';
- else if (filterType == 'user')
- {
- switch (exampleName[i])
- {
- case 'user_super_red_rope': linkTag = '<a target="_blank" href="https://kurnic.itch.io/super-red-rope-puzzles" title="' + exampleDesc[i] + '">'; break;
- case 'user_taptojamp': linkTag = '<a target="_blank" href="http://marcmde.github.io/TapToJAmp_v2_0/" title="' + exampleDesc[i] + '">'; break;
- case 'user_funwithsat': linkTag = '<a target="_blank" href="http://marcmde.github.io/FunWithSATCollisions_v_1_0_Browser/" title="' + exampleDesc[i] + '">'; break;
- default: break;
- }
- /*
- https://github.com/MarcMDE/TapToJump //http://marcmde.github.io/TapToJump_v1_0_Browser/
- https://github.com/MarcMDE/TapToJAmp //http://marcmde.github.io/TapToJAmp_v2_0/
- https://github.com/MarcMDE/FunWithSATCollisions //http://marcmde.github.io/FunWithSATCollisions_v_1_0_Browser/
- https://kurnic.wordpress.com/portfolio/flappy-jetpack/
- */
- }
-
- $('#container').append(
- '<div class="mix f' + filterType + '">' + linkTag +
- '<img width="400" height="225" src="../games/img/' + exampleName[i] + '.png"><div class="extext"><p>' + exampleDesc[i] + '</p></div></a>' +
- '</div>');
-
- $('#container a .extext').hide();
- }
-
- // Instantiate MixItUp:
- $('#container').mixItUp();
-
- $("#container a").hover(
- function(){ $(this).find(".extext").show(); },
- function(){ $(this).find(".extext").hide(); });
-
-/*
- $("#container a img").hover(
- function() { $(this).stop().animate({ opacity:0.6 }, 200, "easeOutQuad" ); },
- function() { $(this).stop().animate({ opacity:0 }, 200, "easeOutQuad" ); }
- )
-*/
-});