In a letter to the President of SYRIZA’s KO Nikos Pappa, Thanos Moraitis states, among other things, that the recent developments in SYRIZA deeply sadden him and that with his move as a member of parliament he expresses his opposition to “choices and behaviors that have injured irreparably the unity and values of the progressive movement”.
The resignation letter of Thanos Moraitis to Nikos Pappa
To him
President of the Parliamentary Group SYRIZA PS Nikos Pappa
Mr President,
The recent developments deeply sadden me, as does every progressive citizen in our country.
It is imperative that I express my opposition to choices and behaviors that have irreparably injured the unity and values of the progressive movement. Unfortunately, the past two months have been a period of intense division and frustration for our members, delegates, and the Left and progressive world, culminating in the travesty convention that damaged our credibility.
I cannot continue to serve in a position of responsibility, working with people who overlook the most precious legacy of the progressive space: collectivity and respect for Democracy. Indifference to our values and ethics cannot be tolerated.
Therefore, I decide to resign from the position of director of the Parliamentary Group of SYRIZA PS. I would like to thank the Members of Parliament and the staff of the KO secretariat for our cooperation at a critical time for all of us. In these extremely difficult times for Democracy and the future of the progressive party, I choose to remain true to the values with which I have walked my entire political career.
Sincerely, Thanos Moraitis.
Schertsos: New platform for real estate pricing for each neighborhood – The goals for 2025
Marinakis: On Tuesday the arrangement for the personal doctor
What is SYRIZA’s response to the complaints about the undemocratic exclusion of delegates
Georgiadis: “After Kasselakis, the grand finale of the great gift that SYRIZA is giving me will be the exit of Polakis”
Gletsos: “Kasselakis was a foreign body – Now we will produce a president… a Syrian”
SYRIZA: The torture of the drop from Kasselakis supporters – Who stay until they leave
#SYRIZA #Thanos #Moraitis #resigned #director #Parliamentary #Group
What best practices should I follow to ensure maintainability when working with multiple advertising scripts in my web application?
It looks like you've pasted a block of JavaScript code related to loading various advertising scripts and services, such as Google AdSense, Phaistos Adman, OneSignal, Disqus, CleverCore, Taboola, Glomex, Dalecta, and Vidoomy.
Below, I'll summarize the key segments and offer guidance on improving or modifying the code structure.
### Code Summary
1. **AdSense Handling**:
- The code targets elements with the class `.adsense-for-mobile` and attempts to remove the ad elements.
- Checks if there are any elements with the class `.adsbygoogle`. If any are found, it potentially loads scripts asynchronously.
2. **Adman**:
- Initializes an Adman ad unit with a given ID.
3. **OneSignal**:
- Defers the initialization of OneSignal with a specified `appId`.
4. **Disqus**:
- The configuration for Disqus setup is defined but appears incomplete, particularly the URL is missing.
5. **CleverCore**:
- This section is commented out and involves dynamically creating a script tag to load CleverCore.
6. **Taboola/Project Agora and Other Ads**:
- It looks like there are placeholders for loading scripts asynchronously for Taboola/Project Agora, Google AdSense, and others.
### Suggested Improvements
1. **Script Loading Functions**:
Ensure you fully implement `asyncLoadScript` and `asyncLoadModule` functions. These should handle script loading reliably, including error handling.
2. **Code Completeness**:
Ensure all required URLs are filled in for script sources where placeholders are indicated. Missing URLs will lead to errors in loading.
3. **Error Handling**:
Implement error handling if a script fails to load. You can use `onerror` properties of script elements.
4. **Comment Clarity**:
Add more comments to clarify the purpose of each section, especially where the logic is not immediately clear.
5. **Maintainability**:
Regularly review and refactor large blocks of code to improve clarity and maintainability. Consider breaking related parts into functions.
6. **Testing & Debugging**:
Before deploying, test the functionality of each ad service to ensure they are loading correctly and not causing other scripts to fail.
### Example Improvement of Script Loading
Here's an outline of how you could improve the `asyncLoadScript` function:
```javascript
function asyncLoadScript(url) {
return new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = url;
script.async = true;
script.onload = () => resolve();
script.onerror = () => reject(new Error(`Failed to load script: ${url}`));
(document.head || document.body).appendChild(script);
});
}
// Example Usage
asyncLoadScript('example-script.js')
.then(() => {
console.log('Script loaded successfully!');
})
.catch((error) => {
console.error(error.message);
});
```
This will ensure that you are loading your scripts in a more manageable way while allowing for easier debugging if something goes wrong.