All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
Wednesday, 18 April 2018
Tuesday, 17 April 2018
Saturday, 7 April 2018
Friday, 6 April 2018
NODE.JS Basic
Create a Node.js file named "myfirst.js" using notepad or IDE
var http = require('http'); //this is module
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Hello World!');
}).listen(8080);
This will show result at http://localhost:8080 by call the Node using CMD.exe or terminal
type on your cmd/terminal
node myfirst.js
and open http://localhost:8080
Ref > https://www.w3schools.com/nodejs/nodejs_get_started.asp
Next! Create module
Save module code below as myfirstmodule.js -
exports.myDateTime = function () {
return Date();
};
Now lets call the module by create other .js file by copy this codevar http = require('http');
var dt = require('./myfirstmodule'); // this is how to call the module above.
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'
});
res.write("The date and time are currently: " + dt.myDateTime());
res.end();
}).listen(8080);
Sunday, 1 April 2018
PHP Wp : Only Declare Role can view content div
<?php
if (current_user_can('editor')){
?>
yang ni editor je boleh view, kalau bukan editor tak boleh
<?php
}
?>
if (current_user_can('editor')){
?>
yang ni editor je boleh view, kalau bukan editor tak boleh
<?php
}
?>
Subscribe to:
Posts (Atom)
Auto select after redirect to the contact page SELECT JAVASCRIPT
https://domain.my/contact/?startup_package=UltimateImpact <select name="startup_package" class="form-select"...
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 < div style = "background-color:#D94A38;width:170px;height:80px;ma...