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:
Comments (Atom)
Cara-Cara Untuk Bypass/Solve: Database Problem.
Warning: Attempt to read property "post_status" on null in /home/xxx/public_html/wp-admin/includes/template.php on line 2298 Wa...
-
Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...
-
/* Responsive Styles */ @media (max-width: 768px) { add ccs here } @media (max-width: 480px) { add css here ...