DreamsCoder.com

We Code your Dreams
home > javascript programs

How to Detect Ad Blocker on your website using Javascript





How to Detect Ad Blocker on your website using Javascript



Label - javascript





Drawing Prism using Three.js





Drawing Prism using Three.js

var scene = new THREE.Scene();
 
var camera = new THREE.PerspectiveCamera
(75, window.innerWidth/window.innerHeight, 0.2, 1000);

var renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth,
window.innerHeight);
            document.body.appendChild(renderer.domElement);
 
            camera.position.z = 3.9;
 
            //1st top planar polygon
            //2nd is bottom planar polygon
            //3rd is  Height
            //4th is dimension 4 for 4d

var pyramidgeometry = new THREE.CylinderGeometry(0.1, bp, h, d, false);

var pyramidmaterial = new THREE.MeshBasicMaterial
({wireframe: true, color: 0x0fff00});
var pyramid = new THREE.Mesh(pyramidgeometry, pyramidmaterial);
    
pyramid.position.set(0.3,0.4,1.6);
scene.add(pyramid);
 
 
            var render = function () {
                requestAnimationFrame(render);
                
                pyramid.rotation.y += 0.01;
                pyramid.rotation.z += 0.01;
                pyramid.rotation.x += 0.01;
                
 
                renderer.render(scene, camera);
            };
 
 
            render();

Label - javascript





Canvas Rotate Scale Translate Skew using JavaScript





Canvas Rotate  Scale  Translate Skew using JavaScript

Full source code and live demo is given on the above link


Label - javascript





Change button color using javascript and keep it same on refresh





Change button color using javascript and keep it same on refresh

   


Note: Please remove the comments and add necessary tags 
or else click on the Source Code

Label - javascript





Get current Date and Time automatically using JavaSrcipt









Date
Time

Label - javascript





next page >






Privacy Policy
Copyright © 2018 by DreamsCoder. All Rights Reserved.
DreamsCoder Google Plus DreamsCoder Facebook



Latest Technology,Tricks and Tips