Giter Site home page Giter Site logo

qianbo0423 / webfudan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geeeeeeeeek/webfudan

0.0 1.0 0.0 34.43 MB

使用WebGL和Node.js技术构建复旦三维社交网络。目前实现了校园模型demo显示,多用户在线聊天。

HTML 31.80% JavaScript 56.33% CSS 11.81% PHP 0.06%

webfudan's Introduction

WebFudan

使用WebGL和Node.js技术构建复旦三维社交网络。Webstorm项目,NodeJS Express开发。目前实现了WebGL显示复旦校园模型demo,多用户在线聊天。

代码说明

项目结构:

  • /bin - 启动脚本,未使用
  • /node_modules - Node.js核心模块
  • /public - 公共文件,包含字体、图片、js、css等
  • /routes - 路由,未使用
  • /template - 一个基于bootstrap的模版,包含一些页面demo
  • /views - 视图,未使用
  • app_deprecated.js - Express默认文件,已弃用
  • main.js - 服务器代码,将此脚本作为Node默认启动项
  • package.json - Node.js依赖文件
  • WebFudan.html - 默认页面,将此网页作为启动页面
  • webgl_deprecated.html - 原WebGL显示页面,已弃用

WebGL:

  • WebFudan.html
<div id="canvas-frame"></div>
  • webgl.js WebGL的核心代码

在线聊天:

  • WebFudan.html
<div class="box box-success" style="border: none;margin-bottom: 0;">
                <div class="box-header">
                    <i class="fa fa-comments-o"></i>

                    <h3 class="box-title font">校园聊天室</h3>
                </div>
                <div class="box-body chat" id="chat-box">

                </div>
                <!-- /.chat -->
                <div class="box-footer" style="margin-bottom: 0;">
                    <div class="input-group">
                        <input class="form-control" placeholder="在此输入" id="input"/>

                        <div class="input-group-btn">
                            <button class="btn btn-success" id="send">发送</button>
                        </div>
                    </div>
                </div>
            </div>
  • chat.js 前端聊天更新的核心代码

修改WebFudan.html时,如需添加javascript或css,请加入public/javascripts/web_fudan.js及public/stylesheets/style.css

webfudan's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.