Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahzal-Rehman authored Aug 13, 2024
0 parents commit 024b3a4
Show file tree
Hide file tree
Showing 659 changed files with 251,805 additions and 0 deletions.
97 changes: 97 additions & 0 deletions ,vm,.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit Profiles</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>

<body>
<h1>Edit Profiles</h1>
<form id="edit-form">
<label for="profile-select">Select Profile:</label>
<select id="profile-select">
<option value="founder1">Shahzal Rehman</option>
<option value="founder2">Kinza Kanwal</option>
<option value="founder3">Anza</option>
<option value="new-profile">New Profile</option> <!-- Option for creating a new profile -->
</select><br>
<div id="new-profile-fields" style="display: none;">
<label for="new-name">Name:</label>
<input type="text" id="new-name"><br>
<label for="new-designation">Designation:</label>
<input type="text" id="new-designation"><br>
<label for="new-description">Description:</label><br>
<textarea id="new-description" rows="4" cols="50"></textarea><br>
<label for="new-image">Image:</label>
<input type="file" id="new-image"><br>
</div>
<button type="button" onclick="saveChanges()">Save Changes</button>
</form>

<script>
function saveChanges() {
var profileId = $('#profile-select').val();
var name, designation, description;

if (profileId === 'new-profile') {
// If creating a new profile, get values from the new profile fields
name = $('#new-name').val();
designation = $('#new-designation').val();
description = $('#new-description').val();

// Get profile picture file
var fileInput = document.getElementById('new-image');
var file = fileInput.files[0];
var reader = new FileReader();

reader.onload = function(e) {
var profilePicture = e.target.result;

// Send data to Azure SQL Database
$.ajax({
url: 'save_profile.php', // Replace with your server-side script URL
method: 'POST',
data: {
name: name,
designation: designation,
description: description,
profile_picture: profilePicture
},
success: function(response) {
alert('New profile created successfully!');
$('#new-profile-fields').hide(); // Hide the new profile fields after creating the profile
},
error: function(xhr, status, error) {
alert('Error creating profile: ' + error);
}
});
};

if (file) {
reader.readAsDataURL(file); // Read file as data URL
} else {
alert('Please select a profile picture.');
}
} else {
// Update existing profile (not implemented in this example)
alert('Updating existing profile is not implemented in this example.');
}
// Clear form fields
$('#edit-form')[0].reset();
}

// Show new profile fields when "New Profile" is selected
$('#profile-select').change(function () {
if ($(this).val() === 'new-profile') {
$('#new-profile-fields').show();
} else {
$('#new-profile-fields').hide();
}
});
</script>
</body>

</html>
46 changes: 46 additions & 0 deletions .github/workflows/azure-static-web-apps-polite-rock-0e3b3af10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_ROCK_0E3B3AF10 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/src" # App source code path
api_location: "" # Api source code path - optional
output_location: "." # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_ROCK_0E3B3AF10 }}
action: "close"
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Binary file added 1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 20240502_103427_001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 20240502_103430_001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CGHBDFGV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 024b3a4

Please sign in to comment.