瀏覽代碼

Added readme.md file

master
Nikola Ignjatovic 5 年之前
父節點
當前提交
74f7dbf469
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7
    7
      README.md

+ 7
- 7
README.md 查看文件

@@ -6,7 +6,7 @@ Diligent web site



Pre requirements:
Pre-requirements:

* installed wamp server (https://sourceforge.net/projects/wampserver/)

@@ -83,21 +83,21 @@ For email sending, needed to make an instance of PHPMailer and use method *send*
$mail->send(); //send email```



When 'resume-file' is sent using POST method, it can be found in FILES array, but other parameters can be found in POST array

When input (type file is used) in html form, need to add enctype="multipart/form-data" and setup:
When input (type file )is used in html form, needed to add enctype="multipart/form-data" and setup:

contentType: false, cache: false, processData:false, url: "myscript.PHP?call=upload" ('?call=upload' added after script name) in ajax submit


There are three the most important variables in header.php. They used for paths.
1. backToRoot is used for back to the root folder where there are index.php, portfolio.php, etc.
2. backToRootIndustries is used for navigation to the industries folder
3. backToRootServices is used for navigation to the services folder.

styles/custom.css is a file which uses developers to add a new feature to the website, style.css is used for bug fixing in old style



For checking validation of file, needed to use (https://www.freeformatter.com/html-validator.html)

Every single page uses keywords (diligent, software, development, company, it, and specific words for that domain). It is located in meta (keywords) in the head of the document

In order to use google captcha in html form, needed to include ```<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script>``` after including **custom.js** script, after that need to add one html element for captcha above the submit button. Define id for that element and custom attribute data-sitekey="site_key", where sitekey is google capctha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function
In order to use google captcha in html form, needed to include ```<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" ></script>``` after including **custom.js** script, after that needed to add one html element for captcha above the submit button. Define id for that element and custom attribute data-sitekey="site_key", where sitekey is google captcha key. After that at the end of custom.js file (before onloadCallback function) add new function for verification and call it in onloadCallback function

Loading…
取消
儲存